This project demonstrates AWS Identity and Access Management (IAM) best practices using Terraform and the AWS CLI.
Create IAM users, groups, and policies following the principle of least privilege.
- IAM User: dev-user
- IAM Group: developers-group
- Custom IAM Policy: EC2 read-only access
- Terraform used for Infrastructure as Code
- Created IAM group for developers
- Created IAM user and added to group
- Defined a least-privilege IAM policy
- Attached policy to IAM group
- Documented configuration using Terraform and AWS CLI
- Provider: AWS
- Region: us-east-1
- Files:
terraform/main.tf
See cli-commands/iam-cli.txt for AWS CLI commands used to create IAM resources.
- Least privilege access
- Group-based permission management
- Custom IAM policies
- Infrastructure as Code for security
The following screenshots provide visual proof of IAM configuration:
- IAM users list showing
dev-user - IAM groups list showing
developers-group - Custom EC2 read-only IAM policy
- Policy attached to IAM group
Screenshots are available in the screenshots/ folder.