我按照http://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_examples.html#iam-policy-example-s3上的示例,了解如何授予用户仅访问一个存储桶的权限.
然后我使用W3 Total Cache Wordpress插件测试了配置.测试失败了.
我也尝试使用再现问题
aws s3 cp --acl=public-read --cache-control='max-age=604800, public' ./test.txt s3://my-bucket/
Run Code Online (Sandbox Code Playgroud)
那失败了
upload failed: ./test.txt to s3://my-bucket/test.txt A client error (AccessDenied) occurred when calling the PutObject operation: Access Denied
Run Code Online (Sandbox Code Playgroud)
为什么我不能上传到我的桶?
amazon-s3 ×1