Reputation: 123
aws s3 --region cp XXX.zip s3://XXX --recursive --acl public-read
I am using above command to upload my local zip to s3 but not working
Upvotes: 1
Views: 12037
Reputation: 468
--recursive
flag is the problem. It is causing the filename to be interpreted as directory which is not, it is a file. This sounds like a bug/annoyance of the AWS command.
From the Docs (docs.aws.amazon.com/cli/latest/reference/s3/cp.html)
--recursive
(boolean) Command is performed on all files or objects under the specified directory or prefix.
Remove --recursive
and the file is copied
aws s3 --region us-east-1 cp XXX.zip s3://XXX --acl public-read
Upvotes: 10