Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control stage names and other details #28

Closed
iongion opened this issue Nov 29, 2016 · 5 comments
Closed

Control stage names and other details #28

iongion opened this issue Nov 29, 2016 · 5 comments

Comments

@iongion
Copy link

iongion commented Nov 29, 2016

Currently we get Prod and Stag - can these be customized ?

  • the stage name
  • the stage variables
@sanathkr
Copy link
Contributor

You can use the StageName property in AWS::Serverless::API resource to customize

@iongion
Copy link
Author

iongion commented Nov 30, 2016

Ok :) - but you typically have at least two stages, one for production and development, they have stage variables, how can this be added/configured, how can the variables be customized ?
StageName looks like a singular concept, this means the SAM api has just one stage that you can control. From what I've experimented with, if this is not provided, then Prod and Stag stages are auto-created for you, so in the end it has two but allows just one to be configured ?

@dinvlad
Copy link

dinvlad commented Nov 30, 2016

Please take a look at the section on AWS::Serverless::Api in the spec (2016-10-31.md). They document how to set stage variables there. What's yet to come is the ability to set these (and the stage name) through parameters for the CloudFormation template.

@mgibas
Copy link

mgibas commented Feb 12, 2017

I would love to see this configuration option when using implicit API definition.

@sanathkr sanathkr removed the question label Jan 7, 2018
@sanathkr
Copy link
Contributor

This will come as part of #248. Closing this in favor of that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants