Skip to content

Identifier Utils Module - #126

Merged
ammokhov merged 4 commits into
aws-cloudformation:masterfrom
ammokhov:identifier-utils
Oct 15, 2020
Merged

ammokhov merged 4 commits into
aws-cloudformation:masterfrom
ammokhov:identifier-utils

Conversation

@ammokhov

@ammokhov ammokhov commented Oct 15, 2020 •

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

added identifier utils module that generates cfn compliant resource name stackName-logicalId-hash

Example:
stack-name: my-custom-stack
logical id: myresource

output: my-custom-stack-myresource-191b9b1a51f5

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ammokhov ammokhov self-assigned this Oct 15, 2020
@ammokhov ammokhov added the enhancement New feature or request label Oct 15, 2020
@ammokhov ammokhov changed the title Identifier utils Identifier Utils Module Oct 15, 2020
@jaymccon

Copy link
Copy Markdown
Contributor

would be nice to get a usage example added to handlers.py template

Comment thread tests/lib/identifier_utils_test.py Outdated
Comment thread src/cloudformation_cli_python_lib/identifier_utils.py Outdated
Comment thread src/cloudformation_cli_python_lib/identifier_utils.py
Comment thread src/cloudformation_cli_python_lib/identifier_utils.py
Comment thread src/cloudformation_cli_python_lib/identifier_utils.py Outdated
Comment thread src/cloudformation_cli_python_lib/identifier_utils.py Outdated

@johnttompkins johnttompkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Everything else looks good other than the 13 issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a method for generating physical resource ids like the Java plugin (but better)

4 participants