S3 upload issues through the AWS console

1

I have a bucket on account A, and want to provide access to upload files to a user on account B, and retain the ownership of the files uploaded. Bucket owner is enforced and the bucket policy is in place to allow PUTs to the bucket from the account B user. However when using the AWS console, user B gets an error "Access control list (ACL) not supported", but I can still upload files when using the aws cli. Am I missing something or is it possible at all to upload files through the AWS console when bucket owner is enforced? thank you

AWS
질문됨 2년 전2513회 조회
4개 답변
2

I had this same issue. I found that having "s3:GetBucketOwnershipControls" permissions on the bucket allowed the console upload to work. I assume that by allowing the console to see that bucket owner ownership is enforced it doesn't try to use an ACL, which previously caused the upload failures.

AWS
답변함 2년 전
2

The only way I found to fix this was to temporarily enable ACLs on the destination bucket and then turn them off afterwards. Seems like a bug.

답변함 일 년 전
0

Wasn't able to reproduce this. ACL disabled + bucket owner enforced bucket is supposed to work in AWS console without any issues. How are you accessing the AWS console to account A's bucket? Is the URL "https://s3.console.aws.amazon.com/s3/buckets/BUCKET_NAME" ?

AWS
V
답변함 2년 전
0

Correct, I use that URL to access it, btw I did some diging in CloudTrail and it shows that the successful API call from aws cli uses this header on the request: x-amz-acl:“bucket-owner-full-control”, but when I do it through the console on the browser that header is missing. Thanks.

AWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠