February 2020
Intermediate to advanced
440 pages
13h 51m
English
In this section, we will see how to add a bucket policy from the CLI:
{ "Id": "Policy1560416549842", "Version": "2012-10-17", "Statement": [ { "Sid": "ListAllBuckets", "Action": [ "s3:ListBucket" ], "Effect": "Allow", "Resource": "arn:aws:s3:::awsseccookbook", "Principal": { "AWS": "arn:aws:iam::135301570106:user/testuser" } } ]}
The condition element is an optional element.
Read now
Unlock full access