Skip to content

Instantly share code, notes, and snippets.

@diegomengarda
Created February 14, 2022 14:10
Show Gist options
  • Save diegomengarda/852e3bbba02c95220a3c991e0521bdd0 to your computer and use it in GitHub Desktop.
Save diegomengarda/852e3bbba02c95220a3c991e0521bdd0 to your computer and use it in GitHub Desktop.
serverless.yml
service: front-service
frameworkVersion: '2'
variablesResolutionMode: 20210326
provider:
stage: ${opt:stage}
name: aws
region: us-west-2
runtime: nodejs14.x
lambdaHashingVersion: '20201221'
apiGateway:
restApiId: ${ssm:MONOREPO_API_GATEWAY_REST_API_ID_${opt:stage}}
restApiRootResourceId: ${ssm:MONOREPO_API_GATEWAY_RESOURCE_ID_${opt:stage}}
functions:
api:
handler: dist/index.handler
timeout: 900
events:
- http:
path: /front/{proxy+}
method: ANY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment