I like to create an AWS Cloud Formation stack by choosing available AMI's in the region(I know AMI's are region specific). I was able to specify a default AMI in the template's "parameters" field, but i have to list down available AMI's in that region, then i need to choose one AMI and create the stack from the cloud formation console. I hard coded them like this in parameter field
"AMI" : {
"Description" : "Your AMI ID.",
"Type" : "String",
"Default" : "ami-146e2a7c",
"AllowedValues" : [ "ami-146e2a7c", "ami-a8d369c0", "ami-aeb532c6" ],
"ConstraintDescription" : "must be a Free AMI."
},
this works, But I need all the available ami's from a specific region.