AWS CLI - couldn't connect to endpoint URL

0 votes
$ aws s3 ls

Could not connect to the endpoint URL: "https://s3.us-east-1a.amazonaws.com/"

What could be the problem?

Oct 5, 2018 in AWS by datageek
• 2,390 points
1,369 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You probably have something wrong in your default profile for the default region.

Check your file at ~/.aws/config, you have something like

[default] region=us-east-1a ...

Fix the region to region=us-east-1 and then the command will work correctly

 

answered Oct 5, 2018 by Archana
• 3,770 points
yes changed the region to us-east-1 from default region. Its working now. But not sure why it is not working with default region
0 votes

Valid endpoint names for this region:

  • s3.amazonaws.com

  • s3.us-east-1.amazonaws.com

  • s3-external-1.amazonaws.com

  • s3.dualstack.us-east-1.amazonaws.com**

  • account-id.s3-control.us-east-1.amazonaws.com

  • account-id.s3-control.dualstack.us-east-1.amazonaws.com**

answered Apr 8 by anonymous
Thanks, that was helpful.

Related Questions In AWS

+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 56,100 points
675 views
0 votes
1 answer

Quick way to get AWS Account number from the cli tools?

Via "Secure Token Service" using the following ...READ MORE

answered Jul 12, 2018 in AWS by Priyaj
• 56,100 points
42 views
0 votes
1 answer
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 56,100 points
82 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 56,100 points
177 views
0 votes
2 answers
0 votes
1 answer

AWS S3 CLI : error while trying to copy files locally using terminal

For the first error you should add ...READ MORE

answered Aug 3, 2018 in AWS by Archana
• 3,770 points
608 views
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 3,770 points
1,499 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.