Skip to content

Conversation

@ammokhov
Copy link
Contributor

@ammokhov ammokhov commented Oct 7, 2020

Issue #, if available: #313

Description of changes:

Added method to generate resource name with the following convention: <StackName>-<ResourceName>-<Hash>

StackName could be retrieved from StackId or from system tags -> this overload supports both - if StackId does not match arn pattern then method assumes it received clean stack name so it will use it directly;

desired resource name: my-stack-name-rdsdbclusterparametergroup-19ok0k9pebcx6
new stack name: my-stack-name-rdsdbclusterparametergroup-dlo2atz4kirm

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 7, 2020
@ammokhov ammokhov added the enhancement New feature or request label Oct 7, 2020
@ammokhov ammokhov requested a review from wbingli October 13, 2020 20:33
@ammokhov ammokhov requested a review from wbingli October 14, 2020 20:55
@ammokhov ammokhov merged commit 953665c into aws-cloudformation:master Oct 15, 2020
@ammokhov ammokhov deleted the resource-name-generation branch October 15, 2020 20:25
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.

Provide resource name generation following current cloudformation naming pattern

3 participants