3 Answers
- Newest
- Most votes
- Most comments
0
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
0
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.
answered 4 months ago
0
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.
answered 4 months ago
Relevant content
- asked 2 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago