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

Allow for AWSHelperFn objects in Tags #1403

Merged
merged 2 commits into from Jun 4, 2019

Conversation

johnctitus
Copy link
Contributor

Fixes #1385

Usecase: We would like to add a dynamically named tag, depending on the value of a Stack parameter, for example if a string is provided, create a tag based on that value. Currently this is not possible.

This update allows for multiple args to be passed into the Tags constructor, as long as all are either dictionaries, or AWSHelperFn objects. It also adds a Tag object, to represent a single resource tag, and enforce proper formatting.

@johnctitus
Copy link
Contributor Author

@markpeek Any feedback on this PR?

Copy link
Member

@markpeek markpeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the tardiness of this review. I had made a comment and never hit "submit review".

troposphere/__init__.py Show resolved Hide resolved
@markpeek markpeek merged commit 86435bf into cloudtools:master Jun 4, 2019
@markpeek
Copy link
Member

markpeek commented Jun 4, 2019

Thanks!

davemasino pushed a commit to davemasino/troposphere that referenced this pull request Oct 17, 2019
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

Successfully merging this pull request may close these issues.

Support For Conditional Tagging
2 participants