February 2020
Intermediate to advanced
440 pages
13h 51m
English
Bucket policies follow the same JSON document structure as IAM policies, but have an additional principal field. The principal is the user or entity for which a policy statement is applicable. There is no principal for an IAM policy as it is attached to an IAM user. The IAM user who executes that policy is the principal in the case of an IAM policy.
Consider the following examples when using Principal in bucket policies:
"Principal" : { "AWS": "arn:aws:iam::135301570106:root"}
"Principal" : { "AWS": "arn:aws:iam::135301570106:user/testuser"}
"Principal" : { "CanonicalUser":"5df5b6014ae606808dcb64208aa09e4f19931b3123456e152c4dfa52d38bf8fd" ...Read now
Unlock full access