1 Answer
- Newest
- Most votes
- Most comments
1
As you said there is no way of doing this with JSON/YAML natively. Instead you need to use features of CloudFormation to do it. There is a Fn::ForEach function available that might be of use to you. Without knowing exactly what you want/need it is hard to know the best solution for you. Alternatively it might be better to create a Template that creates just a single instance using Parameters as you mentioned and then automate the looping of this Template into multiple Stacks using a level "outside" of CloudFormation, something like a Step Function or SSM Automation Document. Or a good "old fashioned" script in the language of your choosing.
It is really dependant on the requirements you have.
answered 5 months ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago