IAM policy

A JSON document that lists which actions are allowed or denied on which resources, and under which conditions.

In more detail

A policy is a version date, 2012-10-17, and a list of statements. Each statement has an Effect, an Action, a Resource and optionally a Sid and a Condition. AWS enforces a policy exactly as written: it will not add to it and it will not soften it.

Examples

{"Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::example-app-data/*"}
{"Effect": "Allow", "Action": ["s3:GetObject"], "Resource": ["arn:aws:s3:::reports/*"]}

Related terms

Taught in

References

Certification courses