-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yaml
More file actions
57 lines (52 loc) · 1.69 KB
/
serverless.yaml
File metadata and controls
57 lines (52 loc) · 1.69 KB
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
53
54
55
56
57
service: ${env:APP_NAME}
variablesResolutionMode: 20210326
frameworkVersion: '2'
configValidationMode: error
plugins:
- serverless-python-requirements
# https://www.serverless.com/plugins/serverless-offline/
- serverless-offline
# https://www.serverless.com/plugins/serverless-plugin-resource-tagging/
- serverless-plugin-resource-tagging
# https://www.serverless.com/plugins/serverless-tag-cloud-watch-logs/
- serverless-tag-cloud-watch-logs
# https://www.npmjs.com/package/serverless-offline-sqs
- serverless-offline-sqs
provider:
name: aws
region: ${env:AWS_REGION}
logRetentionInDays: ${env:LOG_RETENTION_IN_DAYS}
lambdaHashingVersion: 20201221
environment: ${ssm:/aws/reference/secretsmanager/${env:SECRETS_NAME}}
apiGateway:
shouldStartNameWithService: true
deploymentBucket: ${env:LAMBDA_DEPLOYMENT_BUCKET}
deploymentPrefix: ${self:service}
stackTags:
App: "${env:APP_NAME}"
Env: "${env:ENVIRONMENT_NAME}"
Iac: "serverless-ci-IAC-VERSION"
Repository: "${env:REPOSITORY_NAME}"
custom:
cloudWatchLogsTags:
App: ${env:APP_NAME}
Env: ${env:ENVIRONMENT_NAME}
Iac: serverless-ci-IAC-VERSION
Repository: ${env:REPOSITORY_NAME}
pythonRequirements:
dockerizePip: non-linux
functions:
app:
handler: ${env:LAMBDA_HANDLER}
name: ${env:APP_NAME}-${env:ENVIRONMENT_NAME}
runtime: ${env:LAMBDA_RUNTIME}
memorySize: ${env:LAMBDA_MEMORY_SIZE}
timeout: ${env:LAMBDA_TIMEOUT}
maximumRetryAttempts: ${env:LAMBDA_MAXIMUM_RETRY_ATTEMPTS}
role: ${env:LAMBDA_EXECUTION_ROLE_ARN}
vpc:
securityGroupIds:
- ${env:LAMBDA_SECURITY_GROUP_ID}
subnetIds:
- ${env:SUBNET_ID_0}
- ${env:SUBNET_ID_1}