Skip to content

My instances can not access AWS public endpoints

0

I have this errorSaisissez la description de l'image ici : progression error: Trying 172.31.69.200:443...

  • connect to 172.31.69.200 port 443 failed: Connection timed out
  • Failed to connect to ec2.ca-central-1.amazonaws.com port 443 after 130673 ms: Couldn't connect to server
  • Closing connection curl: (28) Failed to connect to ec2.ca-central-1.amazonaws.com port 443 after 130673 ms: Couldn't connect to server
asked 2 years ago360 views
1 Answer
2

Hello.

connect to 172.31.69.200 port 443 failed: Connection timed out

"172.31.69.200" is a private IP address.
Just a guess, are you creating an EC2 VPC endpoint in the VPC where ElasticBeanstalk's EC2 is running?
Enabling private DNS name resolution on a VPC endpoint resolves AWS service endpoints to private IP addresses.
In that case, since you will be accessing "ec2.ca-central-1.amazonaws.com" via the VPC endpoint, you will need to configure the security group for the VPC endpoint to allow HTTPS.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/interface-vpc-endpoints.html

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
AWS
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
  • Agreed with Riku, a public AWS service endpoint necessarily has an IP address publicly routable on the internet. The one that you mention is an address coming from RFC1918 which is dedicated to private address. Then it's probably a private service endpoint for which you must configure sec groups appropriately.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.