Open ajbeach2 opened 3 years ago
I was able to resolve the issue.
I am using an existing vpc with a modified version of this example. The issue was that the autoscaling group was launching in private instances. By using public subnets, and and associating a public ip, the ecs agent was able to register to the cluster.
What is the problem?
https://github.com/aws-samples/aws-cdk-examples/blob/master/python/ecs/ecs-service-with-advanced-alb-config/app.py
The Python ECS example does not work as expected. The ECS cluster is created and the auto scaling groups are created, but no ec2 instances are registered.
Additionally, the STANDARD5 (m5.micro) are not available in us-east-1.
Reproduction Steps
Run the python example in us-east-1 https://github.com/aws-samples/aws-cdk-examples/blob/master/python/ecs/ecs-service-with-advanced-alb-config/app.py
What did you expect to happen?
I expected an ECS cluster with ec2 instances assigned and the example to work as written.
What actually happened?
ECS cluster gets created, ec2 instances get created, but these instances are not registered to the ECS Cluster.
CDK CLI Version
1.130.0 (build 9c094ae)
Framework Version
No response
Node.js Version
v16.13.0
OS
Ubuntu
Language
Python
Language Version
3.8.2
Other information
No response