开发者

Set permissions on accessing a certain file on S3 using IAM with the PHP SDK?

Is it possible to set the users who can access certain files stored on Ama开发者_开发知识库zon's S3 with IAM and also using the PHP SDK?

Thanks in advance!


Yes. You need to generate a policy with the instructions you want. The AWS Policy Generator makes this a lot easier.

From there, you can use the AmazonS3::set_bucket_policy() method to apply the policy you created.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜