Im trying to deploy a docker container image to AWS using ECS, but the EC2 instance is not being created. I have scoured the internet
I realize this is an older thread, but I stumbled on it after seeing the error the OP mentioned while following this tutorial.
Changing to an ecs-optimized AMI image did not help. My VPC already had a route 0.0.0.0/0 pointing to the subnet. My instances were added to the correct cluster, and they had the proper permissions.
Thanks to @sanath_p's link to this thread, I found a solution and took these steps:
IP address type under the Advanced settings to "Assign a public IP address to every instance"