-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathserverless.yml
More file actions
45 lines (41 loc) · 928 Bytes
/
serverless.yml
File metadata and controls
45 lines (41 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
service: serverless-cloudwatch-rds-custom-metrics
package:
exclude:
- 'old/**'
- 's3_files/**'
- '*/*.md'
- '*/*.json'
- '*/*.yml'
- 'screenshots/**'
provider:
name: aws
runtime: nodejs4.3
memorySize: 128
timeout: 10
stage: demo
cfLogs: true
iamRoleStatements:
- Effect: Allow
Action:
- cloudwatch:PutMetricData
- lambda:InvokeFunction
- ec2:CreateNetworkInterface
- ec2:DescribeNetworkInterfaces
- ec2:DeleteNetworkInterface
Resource: "*"
region: us-east-1
functions:
gather-mysql-stats-from-rds:
handler: gather-mysql-stats-from-rds.handler
vpc:
securityGroupIds:
- sg-ec49d489
subnetIds:
- subnet-60dedf14
- subnet-efa9ebc7
- subnet-fb3a18bd
- subnet-a61c7a9c
push-to-cloudwatch:
handler: push-to-cloudwatch.handler
events:
- schedule: rate(1 minute)