开发者

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

开发者 https://www.devze.com 2023-03-24 16:00 出处:网络
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?

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

精彩评论

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