Difference between revisions of "AWS S3 policies"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-policy-language-overview.html
 +
 +
* API reference: https://docs.aws.amazon.com/AmazonS3/latest/API/API_Operations_Amazon_Simple_Storage_Service.html
 +
 +
== [[s3:]] ==
 
{{s3:}}
 
{{s3:}}
 +
 +
== Official example ==
 +
<pre>
 +
{
 +
    "Version": "2012-10-17",
 +
    "Id": "ExamplePolicy01",
 +
    "Statement": [
 +
        {
 +
            "Sid": "ExampleStatement01",
 +
            "Effect": "Allow",
 +
            "Principal": {
 +
                "AWS": "arn:aws:iam::123456789012:user/Dave"
 +
            },
 +
            "Action": [
 +
                "s3:GetObject",
 +
                "s3:GetBucketLocation",
 +
                "s3:ListBucket"
 +
            ],
 +
            "Resource": [
 +
                "arn:aws:s3:::awsexamplebucket1/*",
 +
                "arn:aws:s3:::awsexamplebucket1"
 +
            ]
 +
        }
 +
    ]
 +
}
 +
</pre>
 +
 +
== Errors ==
 +
* <code>[[An error occurred (AccessDenied) when calling the DeleteObject operation: Access Denied]]</code>
  
 
== Activities ==
 
== Activities ==

Latest revision as of 09:34, 12 June 2024

Advertising: