-1

I want to create variable number of EC2 instances within my cloudformation template (YAML). I am planning to create a stack for EC2 instance creation and loop the same. I read this is achievable using Troposphere. Can someone help me with a template or example?

Reshma
  • 69
  • 2
  • 11

1 Answers1

0

Write the below into a class you can reuse for each instance.

https://github.com/cloudtools/troposphere/blob/master/examples/EC2InstanceSample.py

OllieB
  • 81
  • 2