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
When this happens, you need to look to the following:
AmazonEC2ContainerServiceforEC2Role managed policy attached to itecs-optimized (you can check this in EC2 dashboard)Most of the time, this issue appears because of the misconfigured VPC. According to the Documentation:
QUOTE: If you do not have an interface VPC endpoint configured and your container instances do not have public IP addresses, then they must use network address translation (NAT) to provide this access.
These are the reasons why you don't see the EC2 instances listed in the ECS dashboard.