-
Notifications
You must be signed in to change notification settings - Fork 3
/
serverless.yml
46 lines (39 loc) · 1.12 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
########################
# Edit these variables #
########################
custom:
service-name: cognition-datasources-deploy
stage: dev
####################################################################################
# Don't edit below (unless adding environment variables to `provider.environment`) #
####################################################################################
functions:
worker:
handler: handler.worker
events:
- http:
path: /stac/search
method: post
layers:
- arn:aws:lambda:us-east-1:725820063953:layer:cognition-datasources:8
provider:
environment:
SERVICE_STAGE: ${self:provider.stage}
SERVICE_NAME: ${self:service}
SERVICE_REGION: ${self:provider.region}
iamRoleStatementsName: cognition-datasources-role
iamRoleStatements:
- Action:
- lambda:InvokeFunction
- s3:*
Effect: Allow
Resource:
- arn:aws:lambda:*
- arn:aws:s3:::*
name: aws
region: us-east-1
runtime: python3.6
stage: ${self:custom.stage}
service: ${self:custom.service-name}
package:
artifact: lambda-service-package.zip