1.10.1 • Published 2 years ago

serverless-plugin-stage-variables v1.10.1

Weekly downloads
2,596
License
MIT
Repository
-
Last release
2 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

2 years ago

1.10.0

2 years ago

1.9.5

5 years ago

1.9.4

5 years ago

1.9.3

5 years ago

1.9.2

5 years ago

1.8.2

5 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.10

6 years ago

1.7.9

6 years ago

1.7.8

7 years ago

1.7.7

7 years ago

1.6.6

8 years ago

1.6.5

8 years ago

1.5.5

8 years ago

1.4.5

8 years ago

1.3.4

8 years ago

1.2.3

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago