[英]How to restrict buckets to user
Thanks for previous reply. 感谢您先前的回覆。
I am new to amazon s3. 我是Amazon S3的新手。 Is there way to restrict the buckets to specific user.
有没有办法将存储桶限制为特定用户。 I have 20 buckets in my amazon s3, while creating the user i want to share only 2 buckets.
我的Amazon S3中有20个存储桶,而创建用户时我只想共享2个存储桶。 I wont share remaining buckets to that particular user.How to hide or restrict buckets to particular user.
我不会将剩余的存储桶共享给该特定用户。如何将存储桶隐藏或限制给特定用户。 is this possible in amazon s3..??
这在亚马逊s3中可行吗?
You speak of a user, is the user someone within your application, or a user in AWS ACL? 您说的是用户,该用户是您的应用程序内的某个人,还是AWS ACL中的用户?
If its in the application, you can use a temporary access by generating a presigned URL to serve, code sample in C#: 如果它在应用程序中,则可以通过生成预签名URL来使用C#中的示例代码来使用临时访问:
Amazon.S3.Model.GetPreSignedUrlRequest req = new Amazon.S3.Model.GetPreSignedUrlRequest();
req.WithBucketName(Helper.AppConfig.AWS_Bucket)
.WithKey(key)
.WithExpires(expiration)
.WithVerb(Amazon.S3.Model.HttpVerb.GET);
return S3Helper.S3ClientInstance.GetPreSignedURL(req);
If its a user you have added in AWS, you can set the permission for that given user, at the bucket level. 如果您是在AWS中添加的用户,则可以在存储桶级别为该给定用户设置权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.