2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
- For complex requirements like this - where you might want to loop through a set of resources and assign different properties to each one you might want to look at CDK. For simpler requirements you might look at the ForEach intrinsic function.
- Have a look at conditionally creating resources.
0
you can define your EC2 properties as mappings in the beginning of your cloudformation template, something like this:
Mappings: AMI_Mappings: EC2Name: ec21: ami21 ec22: ami22 ec23: ami23 ec24: ami24 ec25: ami25
and use Fn::ForEach intrinsic function to loop through these properties and define the EC2 resource inside the loop.
beantwortet vor 7 Monaten
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 4 Monaten
- AWS OFFICIALAktualisiert vor 4 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr