Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6415763

Browse files
Add pylambda config and service.py config file
1 parent 4d143ce commit 6415763

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

‎pylambda/monitor_lambda/config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
aws_access_key_id = '${AWS_ACCESS_KEY_ID}'
2+
aws_secret_access_key = '${AWS_SECRET_ACCESS_KEY}'
3+
aws_region = '${AWS_REGION}'
4+
#Create the dynamo_db table below
5+
table_name_config = 'lambda.elk.monitor'
6+
table_name_current = 'lambda.elk.monitor.current'
7+
elk_stg = 'https://${ELK_PROD_FQDN}/_search'
8+
elk_prod = 'https://${ELK_STAG_FQDN}/_search'

‎pylambda/monitor_lambda/config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
region: ${AWS_REGION}
2+
3+
function_name: monitor_lambda
4+
handler: service.handler
5+
# Need to create AWS IAM role, please reference https://github.com/nficano/python-lambda for more detail.
6+
role: Lambda_Monitor
7+
description: Lambda monitor leverage elasticsearch API
8+
9+
# if access key and secret are left blank, boto will use the credentials
10+
# defined in the [default] section of ~/.aws/credentials.
11+
aws_access_key_id: ${AWS_ACCESS_KEY_ID}
12+
aws_secret_access_key: ${AWS_SECRET_ACCESS_KEY}
13+
14+
# dist_directory: dist
15+
timeout: 120
16+
memory_size: 512

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /