I'm building a nested Cloudformation stack with a subtemplate used multiple times.
I would like the different resources (S3 buckets, target groups, etc.) to use the AWS::StackName as part of their name.
!Sub ${AWS::StackName}-s3bucket
The nested stack names usually include an AWS-generated string that is in uppercase like:
foobar-vpcstack-YN4842UYLUFL
However, some resources only allow a name that is all lowercase. Is there a way to ensure that the nested stack names are all lowercase?
Or is there a better way to handle the naming of the nested stacks and its resources?