๐Ÿงช Lab 4: Cloud Security & IAM (AWS)

Course: CompTIA Cloud+ CV0-004
Objective: Understand identity and access management (IAM), least privilege, and create secure access control policies in AWS.


๐ŸŽฏ Goals


๐Ÿ” Part 1: Create IAM Group and Policy

  1. Go to IAM โ†’ User Groups โ†’ Create Group
  2. Group name: CloudPlusAdmins

  3. Attach policy:

  4. Click Add permissions
  5. Select AdministratorAccess (for demo) or create custom policy with limited access

โœ… Checkpoint: Group created with proper permissions.


๐Ÿ‘ค Part 2: Create IAM User

  1. Go to Users โ†’ Add users
  2. Username: student1
  3. Access Type: Password + Programmatic Access
  4. Assign user to group: CloudPlusAdmins

  5. Set custom password and require password reset on first login

โœ… Checkpoint: User created with password and CLI access.


๐Ÿงช Part 3: Enable MFA for IAM User

  1. Log in as student1
  2. Go to My Security Credentials
  3. Click Activate MFA โ†’ Choose virtual MFA device (e.g., Google Authenticator)
  4. Scan QR code and verify tokens

โœ… Checkpoint: MFA is now enabled for user login.


๐Ÿ”ง Part 4: Test Permissions via CLI

  1. Configure CLI:
aws configure
# Provide Access Key ID, Secret, region, format
  1. Test permissions:
aws s3 ls
  1. Try to create a restricted resource (if custom policy was used) and verify denied actions

โœ… Checkpoint: IAM policies and MFA enforced correctly.


โœ… Lab Complete