How to change permission recursively to folder with AWS s3 or AWS s3api

后端 未结 7 1358
情歌与酒
情歌与酒 2020-12-06 02:28

I am trying to grant permissions to an existing account in s3.

The bucket is owned by the account, but the data was copied from another account\'s bucket.

Wh

相关标签:
7条回答
  • 2020-12-06 02:48

    This was my powershell only solution.

    aws s3 ls s3://BUCKET/ --recursive | %{ "aws s3api put-object-acl --bucket BUCKET --key "+$_.ToString().substring(30)+" --acl bucket-owner-full-control" }

    0 讨论(0)
提交回复
热议问题