Skip to content

Commit

Permalink
feat(template): prepare serverless.yml for changes introduced in sls …
Browse files Browse the repository at this point in the history
…version 3.0
  • Loading branch information
Fuss Florian (uid10804) committed Jan 2, 2021
1 parent 858b4d2 commit b430e2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/template/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# uses to deploy your code to your provider of choice

# The `service` block is the name of the service
service:
name: ${self:custom.appconfig.stackName}
service: ${self:custom.appconfig.stackName}
plugins:
- serverless-offline
package:
Expand All @@ -32,6 +31,7 @@ provider:
name: aws
runtime: nodejs12.x
region: ${self:custom.region}
stackName: ${self:custom.appconfig.stackName}
stackTags: # Tags that will be added to each of the deployment resources
jsonsls: ${self:custom.file.stackName}
environment:
Expand All @@ -43,6 +43,7 @@ provider:
AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1

apiGateway: # Optional API Gateway global config
shouldStartNameWithService: true
binaryMediaTypes: # Optional binary media types the API might return
- '*/*'
iamRoleStatements:
Expand Down

0 comments on commit b430e2d

Please sign in to comment.