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
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.
Starting at $5/month for 250GiB with 1TB of outbound transfer—inbound bandwidth to Spaces is always free.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With