-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless_template.yml
52 lines (47 loc) · 1.05 KB
/
serverless_template.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
########################
# Edit these variables #
########################
custom:
service-name: stac-updater
stage: dev
region: us-east-1
####################
# Don't edit below #
####################
service: ${self:custom.service-name}
provider:
name: aws
runtime: python3.7
stage: ${self:custom.stage}
region: ${self:custom.region}
environment:
STAGE: ${self:provider.stage}
REGION: ${self:provider.region}
iamRoleStatementsName: ${self:custom.service-name}-role
iamRoleStatements:
- Action:
- sns:Publish
- sns:Subscribe
- sqs:SendMessage
- sqs:ReceiveMessage
- s3:*
Effect: Allow
Resource:
- arn:aws:sqs:*
- arn:aws:sns:*
- arn:aws:s3:::*
functions:
kickoff:
handler: stac_updater.handler.kickoff
environment:
EVENT_SOURCE: lambda
resources:
Resources:
newStacItemTopic:
Type: AWS::SNS::Topic
Properties:
TopicName: newStacItemTopic
plugins:
- serverless-pseudo-parameters
package:
artifact: lambda-deploy.zip