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.
精彩评论