1.10.1 • Published 4 years ago

serverless-plugin-stage-variables v1.10.1

Weekly downloads
2,596
License
MIT
Repository
-
Last release
4 years ago

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-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
}
1.10.1

4 years ago

1.10.0

4 years ago

1.9.5

6 years ago

1.9.4

6 years ago

1.9.3

6 years ago

1.9.2

6 years ago

1.8.2

7 years ago

1.8.1

7 years ago

1.8.0

7 years ago

1.7.10

7 years ago

1.7.9

8 years ago

1.7.8

8 years ago

1.7.7

8 years ago

1.6.6

9 years ago

1.6.5

9 years ago

1.5.5

9 years ago

1.4.5

9 years ago

1.3.4

9 years ago

1.2.3

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago