1 Answer
- Newest
- Most votes
- Most comments
2
When you use the AWS CLI with the put-object
command, the CLI automatically sets the x-amz-acl
header to bucket-owner-full-control
, which is a compatible ACL setting for your bucket. This allows the upload to succeed.
💡 You can find more information about the
x-amz-acl
header and its usage in the Amazon S3 documentation here.
However, in the AWS Console, the default behavior is to use the private
ACL when uploading objects (Blocking all public access). Since your bucket has ACLs disabled, the Console upload fails with the error you've encountered.
💡 You can learn more about the effects of these rules by visiting the Block public access settings page in the Amazon S3 documentation.
Relevant content
- Accepted Answerasked 6 years ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
thanks for all the details. Is there a way to pass x-amz-acl when I upload through console? or do I have to enable ACL on my bucket to allow console to upload?