Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use AWS CLI with Digital Ocean Spaces?

How to use AWS CLI with Digital Ocean Spaces? Is it possible?

I tried to add my key id and secret to .aws/credentials but I got:

An error occurred (InvalidAccessKeyId) when calling the ListBuckets operation: The AWS Access Key Id you provided does not exist in our record

like image 467
paul Avatar asked Dec 10 '18 19:12

paul


People also ask

Does Digital Ocean have S3 bucket?

Spaces is an S3-compatible object storage service that lets you store and serve large amounts of data. Each Space is a bucket for you to store and serve files.

Is digital ocean spaces free?

Starting at $5/month for 250GiB with 1TB of outbound transfer—inbound bandwidth to Spaces is always free.

What is a digital ocean space?

DigitalOcean Spaces provide S3-compatible object storage which lets you store and serve large amounts of data. You can create them in a few seconds and use them immediately with no configuration. Data transfer is automatically secured with HTTPS, and the available storage capacity scales seamlessly.


1 Answers

In order to use the AWS CLI with object storage service that provide an S3-compatible API like DigitalOcean Spaces, you must also configure a custom endpoint.

This can be done on the command line using the --endpoint flag:

aws s3 ls --endpoint=https://nyc3.digitaloceanspaces.com
like image 164
andrewsomething Avatar answered Sep 25 '22 11:09

andrewsomething