Score:0

public s3 bucket file download getting access denied error for files transfered from another account

in flag

Hi i have created a bucket in s3 and made public, If i upload any file i am able to download the file with url from public. But when I did a copy of all s3 files from another account (which also had public permissions) to this new bucket in different account i am not able to downlaod those files in both public / logged in to same account

Note:

  • there is no kms keys set as well i.e by default no encription in the source bucket,

When I Manually try to provide make public ACL then following error i am getting, even though I have a full administrator access . I am not able to dissable the ACL as well to convert the bucket owner to have full permssion and over there as well i am getting error.

You’ll need s3:getObjectACL permissions to make this object public from the S3 console.

Please help me how to fix or better approach to migrate the s3 files from one account public bucket to another account public files

Tim P avatar
af flag
Check to see who owns the object in the bucket (not the bucket itself). My guess is the files were copied to the bucket using credentials assigned to another account so the owner of the file is not the root of the account the S3 bucket resides in. This means the bucket policy won't or won't fully apply to the object. The best practice is now to disable ACLs on the bucket which eliminates a lot of the bucket policy vs object ACL confusion.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.