Skip to content

connection to https://ec2.east-us-1.amazonaws.com/

0

why I can't connect to "https://ec2.east-us-1.amazonaws.com/"?

asked 3 years ago603 views
1 Answer
1
Accepted Answer
AWS
EXPERT
answered 3 years ago
EXPERT
reviewed 2 years ago
AWS
EXPERT
reviewed 3 years ago
EXPERT
reviewed 3 years ago
  • i can connect by typing site in address bar but if i enter this from cli "aws ec2 describe-regions --output table" i get as response "Could not connect to endpoint url: "https://ec2.east-us - 1.amazonaws.com/", why?

  • Check the region setting in ~/.aws/config. It is probably mistyped there or check the environmental variables for mistype. https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

  • the region is east-us-1 and it is correct but I have always the same problem.

  • Try 'unset AWS_REGION' and 'unset AWS_DEFAULT_REGION'. Validate default profile settings, 'aws configure get default.region'. Then run your command. You can always override on the command line, 'aws ec2 describe-regions --output table --region us-east-1'

  • Also the correct region name for Northern Virginia is 'us-east-1' not 'east-us-1'.

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.