2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Hello. Thanks for reporting this issue. To get the the copy object command to work properly you must include --acl bucket-owner-full-control
in your command. I will work with our team to correct our documentation.
aws s3api copy-object --copy-source DOC-EXAMPLE-BUCKET/images/sailbot.jpg --key media/sailbot.jpg --bucket DOC-EXAMPLE-BUCKET --acl bucket-owner-full-control
répondu il y a 2 ans
0
Hi! are you substituting your own bucket name for "DOC-EXAMPLE-BUCKET"? The bucket you're using should be owned and setup by you as well: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/buckets-in-amazon-lightsail
If you are, I would check the bucket permissions and security configuration as well: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-understanding-bucket-permissions
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 19 heures
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
Yes, like mentioned, read access works fine (I can e.g. list and download objects).
I used the root account to set up my buckets. I also created another account with admin permissions, as described here: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-how-to-set-up-access-keys-to-use-sdk-api-cli. Tried with an access key for both root and the admin, and neither can upload objects.
I have individual access keys for each the buckets, but afaict there's no way to use two access keys in one cli command.