Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to specify --endpoint-url in aws cli config file

The aws command is

aws s3 ls --endpoint-url http://s3.amazonaws.com

can I load endpoint-url from any config file instead of passing it as a parameter?

like image 800
Siddhivinayak Shanbhag Avatar asked Sep 25 '18 08:09

Siddhivinayak Shanbhag


People also ask

What is the endpoint in AWS config?

This type of endpoint enables you to connect your VPC to AWS services. The endpoint provides reliable, scalable connectivity to AWS Config without requiring an internet gateway, network address translation (NAT) instance, or VPN connection. For more information, see What is Amazon VPC in the Amazon VPC User Guide.

Could not connect to the endpoint URL AWS S3 CLI?

To troubleshoot this error, check the following: Confirm that you're using the correct AWS Region and Amazon S3 endpoint. Verify that your network can connect to those Amazon S3 endpoints. Verify that your DNS can resolve to those Amazon S3 endpoints.

Where is AWS S3 endpoint URL?

Get an S3 Object's URL # Navigate to the AWS S3 console and click on your bucket's name. Use the search input to find the object if necessary. Click on the checkbox next to the object's name. Click on the Copy URL button.


2 Answers

This is an open bug in the AWS CLI. There's a link there to a cli plugin which might do what you need.

It's worth pointing out that if you're just connecting to standard Amazon cloud services (like S3) you don't need to specify --endpoint-url at all. But I assume you're trying to connect to some other private service and that url in your example was just, well, an example...

like image 97
Stephen Avatar answered Sep 20 '22 17:09

Stephen


alias aws='aws --endpoint-url http://website' 
like image 39
Lingsheng Meng Avatar answered Sep 22 '22 17:09

Lingsheng Meng