-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yml
32 lines (28 loc) · 936 Bytes
/
serverless.yml
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
service: sync-fastly-ips
provider:
name: aws
runtime: nodejs12.x
region: ${file(./serverless-inputs.yml):aws_region}
# you can overwrite defaults here
# stage: dev
# you can add statements to the Lambda function's IAM Role here
iamRoleStatements:
- Effect: "Allow"
Action:
- "ec2:DescribeSecurityGroups"
- "ec2:RevokeSecurityGroupIngress"
- "ec2:AuthorizeSecurityGroupEgress"
- "ec2:AuthorizeSecurityGroupIngress"
- "ec2:UpdateSecurityGroupRuleDescriptionsEgress"
- "ec2:CreateSecurityGroup"
- "ec2:RevokeSecurityGroupEgress"
- "ec2:UpdateSecurityGroupRuleDescriptionsIngress"
Resource: "*"
functions:
sync:
handler: handler.sync
events:
- schedule: ${file(./serverless-inputs.yml):schedule}
environment:
REGION: ${file(./serverless-inputs.yml):aws_region}
VPC_ID: ${file(./serverless-inputs.yml):vpc_id}