Skip to content

Labs helping you to learn how write IAM policies following the least privilege principle.

License

Notifications You must be signed in to change notification settings

widdix/learn-iam-policy

Repository files navigation

learn-iam-policy

Labs helping you to learn how write IAM policies following the least privilege principle.

Are you looking for an instructor-led workshop based on these labs? Say [email protected].

Introduction

We are using <Variable> to indicate that you should replace parts of the instructions with a variable.

Preparing the lab environment

The CloudFormation template lab-environment.yml creates a lab environment consisting of:

  • EC2 Instance with an IAM role attached (access to SSM is granted for Session Manager access)
  • S3 bucket
  • SSM parameters
  1. Create a CloudFormation stack based on the template lab-environment.yml.
    1. Set stack name to your name but only use characters a-z (lowercase!).
  2. Make a note with the outputs of the stack: IamRole, S3Bucket.
  3. Connect to the EC2 instance using SSM Session Manager
    1. Visit https://console.aws.amazon.com/systems-manager/session-manager/start-session
    2. Select your instance
    3. Push the Start Session button
    4. Jump to your home directory: cd ~
  4. Done. You can now start with the labs.

Labs

Clean up

  1. Empty your S3 bucket <S3Bucket>.
  2. Delete your CloudFormation stack.

More Labs

We offer AWS workshops tailored to your needs. See widdix/learn-* for more labs.

About

Labs helping you to learn how write IAM policies following the least privilege principle.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published