I have a terraform setup that deploys successfully without error. It uses Github actions, but I don't think that matters.
It creates an ECS-EC2 cluster. I'm using an ECS-Optimized AMI (have verified it in the console), have an internet gateway with the right things in the route table, but the service does not place a task... in the console, I see:
No Container Instances found in your cluster
As far as I can tell, I've jumped through all the hoops. My code is here: https://gist.github.com/afisher-stelligent/efbbb32debef3f2eae4b61957f225c44
Any pointers would be appreciated. Been banging my head on this quite a bit. Have tried suggestions here, here, and several other places.
Stranger still, if I drill down far enough, it says I have no ec2 instances registered to my cluster.
Update #1
I ran the AWS Systems Manager runbook for Troubleshooting ECS Issues (AWSSupport-TroubleshootECSContainerInstance)... it pointed out that my VPC Endpoints were not allowing traffic, which is strange because I have an ingress rule from the private subnets properly configured.
I changed the inbound CIDR block to 0.0.0.0/0
and I now get errors about log group creation. Which is progress. But not super secure.