IAM policy
An IAM policy is a declarative set of rules specifying which identities or principals may perform which actions on which resources.
Amazon Web Services in Action, Third Edition: An in-depth guide to AWS
An IAM policy is a document that defines permissions by allowing or denying actions on resources for AWS identities or principals.
- How it is used
- Controls which AWS API actions users, groups, roles, and workloads may perform on resources.
- How deep it goes
- Works through JSON statements, deny precedence, resource ARNs, policy types, and conditional permissions, without detailing a full policy-evaluation procedure.
- Examples
- Uses EC2 termination and self-stopping policies, a Lambda tagging policy, and RDS policies that deny destructive actions.
- What you can do after
- Apply it via JSON or CloudFormation to grant task-specific AWS permissions and explicitly deny unwanted actions.
Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform
An IAM policy is a declarative access-control specification that grants or denies identities permission to perform actions on resources.
- How it is used
- Separates IAM policy management from monolithic infrastructure configuration while preserving active access and idempotency.
- How deep it goes
- Shows copying, generating, importing, removing, and planning, stopping at implementation rather than policy-design theory.
- Examples
- Uses GCP service accounts with viewer, editor, and owner roles, plus Python-generated JSON and Terraform commands.
- What you can do after
- Operate/configure Terraform IAM resources by separating configuration, importing existing state, and verifying zero-change plans.
Build Python Web Apps with Streamlit
An IAM policy is a declarative AWS document that specifies which actions are allowed or denied on which resources.
- How it is used
- Controls AWS service access for deployment users and instance roles.
- How deep it goes
- Explains policy selection and attachment, but does not detail policy document syntax or evaluation rules.
- Examples
- Uses Elastic Beanstalk, EC2, and S3 policies in an AWS deployment setup.
- What you can do after
- Operate/configure AWS deployment access by attaching named policies to an IAM user.
Read how Build Python Web Apps with Streamlit explains IAM policy →
Also covered in
What to know first
- JSONJSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
- roleA role is a defined function or status assigned to a participant that specifies responsibilities, permissions, behavior, or perspective within a system or organization.
Related concepts
- Amazon ElastiCacheconfigures · Amazon ElastiCache is an AWS-managed in-memory data-store service for caching and low-latency data access.
- Amazon Relational Database Service (RDS)configures · Amazon Relational Database Service (RDS) is an AWS-managed service for provisioning, operating, and scaling relational databases.
- AWSuses · Amazon Web Services (AWS) is Amazon’s public cloud computing platform, providing on-demand infrastructure and managed services over the internet.
- IAM userused by · An IAM user is an AWS identity representing a person or application with credentials and assigned permissions within an account.
Questions about IAM policy
What is IAM policy?
An IAM policy is a declarative set of rules specifying which identities or principals may perform which actions on which resources.
Which Manning books explain IAM policy?
Amazon Web Services in Action, Third Edition: An in-depth guide to AWS, Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform and Build Python Web Apps with Streamlit.
What should I know before learning IAM policy?
Manning books that teach IAM policy usually introduce JSON and role first.
What kinds of IAM policy are there?
Kinds of IAM policy include inline policy.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


