Add stage variables ApiGateway V2 for HTTP APIs. Note: This is meant to work together with serverless-plugin-canary-deployments
npm install serverless-plugin-canary-deployments --save-dev
npm install serverless-apigv2-http-api-stage --save-dev
custom:
httpApi: # serverless-http-api-stage
region: ${opt:region, self:provider.region}
accountId: ${file(./env.yaml):${self:custom.stage}.ACCOUNT_ID}
plugins:
- serverless-plugin-canary-deployments
- serverless-apigv2-http-api-stage