This post is mostly a reminder for me, as I have this issue often enough to kill me, but rarely enough that I always forget the solution.
When you have a cloud formation template that has a parameter of type `list`, passing a value to that on the commandline is NOT intuitive.
"Parameters": {
"Subnets": {
"Type": "List<AWS::EC2::Subnet::Id>
}
}
Here's the trick.
myprompt>aws cloudformation create-stack --stack-name some-stack --template-url https://s3.amazonaws.com/..... --parameters ParameterKey=Subnets,ParameterValue=\'subnet-2353264,subnet-6513946131\'
NOTICE that we did not put any spaces in the subnet list and that we had to quote it, but not just quote it, we had to escape those quotes too.
Thanks to https://github.com/aws/aws-cli/issues/870 for getting me pointed in this direction.