IAM Policy Components
Overview
Components of an IAM Policy
1. Version
"Version": "2012-10-17"
2. Statement
"Statement": [ { "Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::my-example-bucket/*" } ]
3. Effect
4. Action
5. Resource
6. Condition (Optional)
Full Example: Read-Only Access to an S3 Bucket
Explanation:
Example: Policy with Conditions for MFA Requirement
Explanation:
Example: Deny Policy with IP Address Restriction
Explanation:
Summary of Policy Elements
How Policies are Used in AWS
Last updated