Runbook 01 Secure Enterprise IAM Environment
Module: 02 β Identity & Access Management (IAM)
Enterprise Lab: 01
Estimated Time: 2β3 Hours
Difficulty: βββββ
Estimated Cost: Free Tier (No additional AWS charges)
π― Objective
Section titled βπ― ObjectiveβAs a Cloud Security Engineer at CloudNova Technologies, your first responsibility is to design and implement a secure Identity and Access Management (IAM) environment.
By completing this runbook, you will:
- Understand IAM fundamentals
- Create IAM Users
- Create IAM Groups
- Create IAM Roles
- Create IAM Policies
- Configure Password Policies
- Enable Multi-Factor Authentication (MFA)
- Configure IAM Identity Center
- Review IAM Access Analyzer
- Generate Credential Reports
- Validate the IAM environment
- Build an enterprise-ready IAM structure
π’ Business Scenario
Section titled βπ’ Business ScenarioβCloudNova Technologies has recently hired several new employees.
You have been asked to build a secure IAM environment before they receive access to AWS.
The company has the following teams:
- Cloud Engineering
- DevOps
- Developers
- Cloud Security
- SOC
- Auditors
- Finance
Each team requires different permissions.
Your goal is to provide secure access following the Principle of Least Privilege.
π Prerequisites
Section titled βπ PrerequisitesβComplete:
- AWS Security Foundations Module
Required:
- AWS Account
- Administrator IAM User
- MFA Enabled
- AWS CLI Installed
- Visual Studio Code
π Enterprise Design
Section titled βπ Enterprise DesignβAWS Account
β
βββ Cloud Engineeringβ βββ cloud-eng01β βββ cloud-eng02ββββ Developersβ βββ dev01β βββ dev02ββββ Security Teamβ βββ sec01β βββ sec02ββββ SOCβ βββ soc01ββββ Financeβ βββ finance01ββββ Auditors βββ audit01Step 1 β Review Existing IAM Environment
Section titled βStep 1 β Review Existing IAM EnvironmentβOpen:
AWS Console
β
IAMReview:
- Users
- Groups
- Roles
- Policies
- MFA
- Identity Center
aws iam list-usersaws iam list-groupsaws iam list-rolesaws iam list-policies --scope LocalStep 2 β Create IAM Groups
Section titled βStep 2 β Create IAM GroupsβCreate the following groups:
Cloud-Engineering
Developers
Security
SOC
Finance
AuditorsAWS Console:
IAM
β
User Groups
β
Create GroupCLI Example
aws iam create-group \--group-name DevelopersRepeat for all groups.
Step 3 β Create IAM Users
Section titled βStep 3 β Create IAM UsersβCreate users:
cloud-eng01
cloud-eng02
dev01
dev02
sec01
sec02
soc01
finance01
audit01Console:
IAM
β
Users
β
Create UserEnable:
- Console Access
Do not create long-term access keys unless required for the lab.
CLI Example
aws iam create-user \--user-name dev01Step 4 β Add Users to Groups
Section titled βStep 4 β Add Users to GroupsβAssign users:
| User | Group |
|---|---|
| cloud-eng01 | Cloud-Engineering |
| cloud-eng02 | Cloud-Engineering |
| dev01 | Developers |
| dev02 | Developers |
| sec01 | Security |
| sec02 | Security |
| soc01 | SOC |
| finance01 | Finance |
| audit01 | Auditors |
CLI Example
aws iam add-user-to-group \--group-name Developers \--user-name dev01Step 5 β Configure Password Policy
Section titled βStep 5 β Configure Password PolicyβNavigate to:
IAM
β
Account SettingsConfigure:
- Minimum Length: 14
- Uppercase
- Lowercase
- Numbers
- Symbols
- Password Expiry: 90 Days
- Password History: 24
CLI
aws iam get-account-password-policyStep 6 β Enable MFA
Section titled βStep 6 β Enable MFAβEnable MFA for:
- Administrator
- Security Team
- Cloud Engineers
Recommended:
Virtual MFA Device
Validation:
Every privileged user should require MFA before signing in.
Step 7 β Review AWS Managed Policies
Section titled βStep 7 β Review AWS Managed PoliciesβExplore policies such as:
- ReadOnlyAccess
- PowerUserAccess
- SecurityAudit
- AdministratorAccess
Discuss:
- When should each policy be used?
- Which policies should never be assigned permanently?
Step 8 β Create a Custom IAM Policy
Section titled βStep 8 β Create a Custom IAM PolicyβCreate a customer-managed policy that allows developers to:
- Read Amazon S3
- Upload objects to a specific project bucket
- Deny bucket deletion
Review the JSON policy before creating it.
Discuss how custom policies provide finer control than broad managed policies.
Step 9 β Create an IAM Role
Section titled βStep 9 β Create an IAM RoleβCreate a role for EC2.
Steps:
IAM
β
Roles
β
Create Role
β
AWS Service
β
EC2Attach:
AmazonSSMManagedInstanceCoreDiscuss:
- Why use roles instead of storing access keys on EC2?
Step 10 β IAM Access Analyzer
Section titled βStep 10 β IAM Access AnalyzerβNavigate to:
IAM
β
Access AnalyzerCreate an analyzer.
Review findings.
Discuss:
- External access
- Public access
- Cross-account permissions
Step 11 β Generate Credential Report
Section titled βStep 11 β Generate Credential ReportβGenerate a credential report.
Console:
IAM
β
Credential ReportCLI
aws iam generate-credential-reportRetrieve the report:
aws iam get-credential-reportReview:
- Users without MFA
- Unused passwords
- Old access keys
- Inactive users
Step 12 β Validation
Section titled βStep 12 β ValidationβVerify:
- IAM Groups created
- IAM Users created
- Users assigned correctly
- Password Policy configured
- MFA enabled
- IAM Role created
- Credential Report generated
- Access Analyzer reviewed
π§ͺ Enterprise Challenge
Section titled βπ§ͺ Enterprise ChallengeβCloudNova Technologies currently has:
- Every user assigned AdministratorAccess
- No MFA
- Shared administrator account
- Long-term access keys
- No IAM groups
Your task:
Prepare an improvement plan.
Include:
- Risks
- Recommended IAM structure
- MFA rollout
- Least Privilege model
- Long-term recommendations
π Deliverables
Section titled βπ DeliverablesβCapture screenshots of:
- IAM Dashboard
- IAM Users
- IAM Groups
- IAM Roles
- Password Policy
- MFA
- IAM Access Analyzer
- Credential Report
Submit:
- IAM User Matrix
- Group Matrix
- Improvement Plan
π§Ή Cleanup
Section titled βπ§Ή CleanupβDo NOT delete:
- IAM Groups
- IAM Roles
- Password Policy
- MFA
- IAM Users
These resources will be used in later modules.
Delete only:
- Temporary test users
- Test policies
- Experimental roles
β Runbook Checklist
Section titled ββ Runbook Checklistβ- IAM Groups Created
- IAM Users Created
- Users Added to Groups
- Password Policy Configured
- MFA Enabled
- IAM Role Created
- Access Analyzer Reviewed
- Credential Report Generated
- Validation Complete
π‘ Lessons Learned
Section titled βπ‘ Lessons LearnedβWhat did you learn?
Section titled βWhat did you learn?βWhich IAM best practices are most important?
Section titled βWhich IAM best practices are most important?βWhich risks did you identify?
Section titled βWhich risks did you identify?βHow does IAM support the Principle of Least Privilege?
Section titled βHow does IAM support the Principle of Least Privilege?βπ Next Enterprise Runbook
Section titled βπ Next Enterprise RunbookβEnterprise Runbook 02 β Enterprise IAM Security Assessment
In the next runbook, you will audit an intentionally insecure AWS IAM environment, identify security weaknesses, and implement remediation actions just as a Cloud Security Engineer would in a real enterprise.