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.
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
Support !Ref of template parameters #657
Support !Ref of template parameters #657
Changes from 6 commits
98eba88
c70c9f6
28a050a
f1acff4
fe310be
be35ca4
474ace1
642eb78
c5fa2fd
7eccccc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a nit:
Making it look like in the docstring, looks nice in the editor, because it interprets it as a python prompt. https://numpydoc.readthedocs.io/en/latest/format.html#docstring-standard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! I will add it..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the type to
aws_profile
andaws_region
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: remove the
:
to remain consistent with the other docstrings.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be
key=value
instead ofkey-value
? You have an example but keeping this consistent will help communicate what we are expecting.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this comment, to reflect the AWS::Region override change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see an ask for making the Region reflect the
--region
a customer passes into the cli after we release this. You are claiming this doesn't have much value but we don't know how exactly a customer will be using this.One example for have Region reflect the
--region
parameter would be to construct an ARN in the Environment Variables. Yes customers can override this but why should they have to if the Parameter Replacing does exactly what they need to (or assume so). Without the replacement, I would actually expect the Region to be reflected inAWS::Region
and would become confused on why my expectation was wrong.I think we alleviate some developer churn if we just make
AWS::Partition
,AWS::Region
, and partition/region in theAWS::StackId
reflect what it should be based on the--region
that is passed into the commands.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Region is possible. Partition is harder because it requires us to maintain a list of region:partition mapping.
I don't want to pass region to the SAM Provider because it doesn't make sense. I will try to find another solution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StackId is rarely used and partition is usually "aws". So I am going to skip those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not default this to
{}
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a LOG.info or debug here? It will be helpful when customers submit Issues.
Also, you are doing a
dict
check here. This is checking for invalid Parameters definition. Can we add some sort of logging to tell the customer it either invalid or we are skipping for X reason. This will help customers understand what is going on and help them debug their issue.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add debug logs