How to create some random or unique value in a CloudFormation template?
问题 Is there a way to create some kind of random or unique value in a CloudFormation template? Why I need this. In our templates we have a number of custom-named resources, for instance AWS::AutoScaling::LaunchConfiguration with specified LaunchConfigurationName or AWS::AutoScaling::AutoScalingGroup with specified AutoScalingGroupName . When updating stacks, we often get the following error: CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename some-stack