Is it possible to share a Amazon S3 bucket between Amazon S3 users? [closed]

倖福魔咒の 提交于 2019-12-04 08:45:38

It is possible to share buckets between existing AWS users without using IAM.

Using the console (or the API), add permissions on the bucket for each AWS User. In the Grantee field add the users email address or canonical userid (to get this, log into your AWS account, go to Account - Security Credentials, scroll to the bottom and click the link to reveal ID)

The only issue I see, is that there doesn't seem to be any way to access these shared buckets in the AWS Console. But many of the 3rd party tools do provide this facility and you can access them using the API.

Jharrod LaFon

You can use s3cmd to do this.

  1. First determine the Canonical User ID of the user you want to share a bucket with.
  2. Both parties install s3cmd and set up credentials: s3cmd --configure
  3. The bucket owner does this: s3cmd setacl --acl-grant=read:<canonical-user-id> s3://BUCKETNAME[/OBJECT]
  4. The recipient can then see the bucket: s3cmd ls s3://BUCKETNAME[/OBJECT]

Note: In addition to read, write, read_acp, write_acp, full_control and all are possible, where write_acp means the user can change the access control permissions.

Take a look at AWS Identity and Access Management (IAM).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!