I'm trying to upload a file to Amazon S3 via the command-line, but I keep receiving this error:
A client error (AccessDenied) occurred when calling the CreateMultipartUpload operation: Anonymous users cannot initiate multipart uploads. Please authenticate.
The command I'm running is:
# aws s3 cp --sse pad-20151108-175046.tar.gz s3://mpen-backups
I've configured aws
via aws configure
with what I believe are the correct credentials. aws s3 ls
does list my buckets.
How do I provide a user to AWS CLI? My googlefu isn't turning up anything useful.
I installed aws
via apt-get install awscli
(on Ubuntu).
# aws --version
aws-cli/1.2.9 Python/3.4.0 Linux/3.13.0-24-generic