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

后端 未结 7 1383
情歌与酒
情歌与酒 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" }

提交回复
热议问题