Thanks for previous reply.
I am new to 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. I wont share remaining buckets to that particular user.How to hide or restrict buckets to particular user. is this possible in amazon s3..??
You speak of a user, is the user someone within your application, or a user in AWS ACL?
If its in the application, you can use a temporary access by generating a presigned URL to serve, code sample in 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.