Closed zentavr closed 1 year ago
Do I need to use something from CloudFormation intrinsic functions?
The idea of adding the tags to autoscaling groups was found here. (Authored by @pahud)
Thank you for bringing up my previous sample. I appreciate that.
Looks like you are trying to create individual NG for the 5 AZs(['us-east-1a', 'us-east-1b', 'us-east-1c', 'us-east-1d', 'us-east-1f']
), each NG has multiple custom tags applied. In this case I would prefer a single custom resource that takes care all tags for all NGs. That might be cleaner and easier to maintain.
But I am wondering what makes you to create NG for each az? I assume a NG should be cross-az?
As this issue is not a bug or feature request but general discussion, I am moving this to discussion but I would be happy to continue discuss your use case with you.
Describe the bug
I have a code like this:
The problem is that when I check the generated template in
cdk.out
of in AWS Console, I can see that all the Custom Resources got the same parameters (tags in my case), whileconsole.log()
which I'd put across the code prints the unique values.Expected Behavior
I would like to create unique custom resources in obj.forEach()
Current Behavior
When I have something inside obj.forEach() which needs to be created by CDK, it's not created properly.
Reproduction Steps
The code sample was provided in the block above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.87.0 (build 9fca790)
Framework Version
2.87.0
Node.js Version
v18.16.0
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response