Repository navigation
Conversation
pmuens
reviewed
Apr 26, 2019
pmuens
left a comment
Contributor
There was a problem hiding this comment.
Thanks for working on this @mnapoli 👍
I like the idea of this implementation. However we can't merge it right now since the fallback to provider.stage will only work if the user has defined the stage in the serverless.yml provider section, making this variable non-deterministic.
I believe we have to wait until #5508 is resolved. Once we made a decision on #5508 we can implement this new variable.
Thanks again for taking the time to work on this 💯
Contributor
Author
|
👍 I see, thanks for the feedback. |
Contributor
Closed
Contributor
Author
Contributor
Author
|
Follow-up: #9296 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What did you implement:
Address #6031 by adding 2 new variables:
sls:stageandsls:region.Those variables are shortcuts to:
How did you implement it:
To be honest I copied existing code, I am not an expert. Feel free to post comments to suggest improvements.
How can we verify it:
I added automated tests but testing with a real
serverless.ymlwould be great (didn't find those in automated tests).Here is an example:
The function could be:
The result of this function should be
{"stage":"customstage"}.Todos:
Is this ready for review?: YES
Is it a breaking change?: NO