1.10.1 • Published 4 years ago
serverless-plugin-stage-variables v1.10.1
serverless-plugin-stage-variables
Add stage variables for Serverless 1.x to ApiGateway, so you can use variables (and CloudFormation references!) in your Lambda's.
Usage
custom:
stageVariables:
bucket_name: ${env.BUCKET_NAME}
endpoint: { "Fn::GetAtt": "CloudFrontEndpoint.DomainName" }
foo: bar
plugins:
- serverless-plugin-stage-variablesAnd then in your lambda's, you can use:
module.exports.foobar = (event, context, cb) => {
// event.stageVariables.bucket_name
// event.stageVariables.endpoint
// event.stageVariables.foo
}1.10.1
4 years ago
1.10.0
4 years ago
1.9.5
7 years ago
1.9.4
7 years ago
1.9.3
7 years ago
1.9.2
7 years ago
1.8.2
7 years ago
1.8.1
7 years ago
1.8.0
8 years ago
1.7.10
8 years ago
1.7.9
8 years ago
1.7.8
9 years ago
1.7.7
9 years ago
1.6.6
10 years ago
1.6.5
10 years ago
1.5.5
10 years ago
1.4.5
10 years ago
1.3.4
10 years ago
1.2.3
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago