Question:
I try and create a stack by uploading a template.
That fails with an error heading that is blank.
I have permissions to create buckets, upload files, create EC2 instances, etc.
I tried switching to my root account even but that didn’t help.
I’ve tried different YAML files and examples but none seem to work.
Without meaningful error messages with actionable items I am stuck.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
{ "AWSTemplateFormatVersion": "2010-09-09", "Metadata": { "AWS::CloudFormation::Designer": { "213de823-ad0a-4f4c-af04-e3c9e565eef8": { "size": { "width": 60, "height": 60 }, "position": { "x": 581, "y": 148 }, "z": 0 } } }, "Resources": { "EC2I4PJFK": { "Type": "AWS::EC2::Instance", "Properties": {}, "Metadata": { "AWS::CloudFormation::Designer": { "id": "213de823-ad0a-4f4c-af04-e3c9e565eef8" } } } } } |
Answer:
I was in the wrong region
Once I switched to us-east-1 (Virginia) in the management console itself, all these problems went away. When I switch to another region they return. The template also refers to resources in us-east-1. So this explains how to avoid the error, however the poor (even blank) error messages are very unhelpful. I am still not sure if the other region AMI ref is the issue or whether you just need to be in N. Virginia to run cd.
At one point I had even got the template to execute (though resource created still failed) by using an S3 bucket that I had created for the template file instead of the upload file functionality. When I used the ‘load from S3 bucket’ approach it actually uploaded but then failed in stack creation due to the wrong region issue (AMIs for example are region specific). This just added to the confusion when debugging the issue.