Add stage variables for Serverless 1.x to ApiGateway, so you can use variables (and CloudFormation references!) in your Lambda's.
custom: stageVariables: bucket_name: ${env.BUCKET_NAME} endpoint: { "Fn::GetAtt": "CloudFrontEndpoint.DomainName" } foo: bar plugins: - serverless-plugin-stage-variables
And then in your lambda's, you can use:
module.exports.foobar = (event, context, cb) => { // event.stageVariables.bucket_name // event.stageVariables.endpoint // event.stageVariables.foo }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4