- Newest
- Most votes
- Most comments
Hi,
It's not a direct reponse to your question but it may help you get the answer: AWS has open-sourced the scripts used to build the Amazon ECS-optimized Linux AMIs.
See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-build-scripts.html
Those scripts are available at https://github.com/aws/amazon-ecs-ami
By analyzing them, you will see if they contain any settings preventing the use of EC2 Instance Connect Endpoint. You can also adapt them to your specific needs (and make sure that you can have ssh connection)
Best,
Didier
Hi,
Please check 2 things:
- If VPC of EC2 Instance Connect Endpoint is the same as EC2 VPC.
- Check SG of EC2 Instance Connect Endpoint. SG EC2 Instance Connect Endpoint should allow SSH TCP 22 for outbound traffic. SG of EC2 should have inbound rule that allows SG of EC2 Instance Connect Endpoint.
Hey!
All this seems to work. Again, I am testing with the same VPC and SG, and I get it working with a different AMI. But for some reason, it does not work with the ECS AMI.
Hello, I ran into the same issue. Looks like ECS optimized ami doesn't have the following link module in the initial setting, so I installed it and now can connect to my ec2 via EC2 Instance Connect Endpoint.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html
