Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephgoksu/797403bec045db9514fed03780b9e538 to your computer and use it in GitHub Desktop.
Save josephgoksu/797403bec045db9514fed03780b9e538 to your computer and use it in GitHub Desktop.
it easier to implement least privilege permissions by generating IAM policies based on access activity

iamlive: Generate an IAM policy from AWS calls using client-side monitoring (CSM) or embedded proxy

Installation

Homebrew

You may also install this application using a Homebrew tap with the following command:

brew install iann0036/iamlive/iamlive

Usage

  • Open two terminal session
  • Export the variable for both of them
    • export AWS_CSM_ENABLED=true
## Terminal 1

$ export AWS_CSM_ENABLED=true
$ iamlive --set-ini
## Terminal 2

$ cd project/folder
$ export AWS_CSM_ENABLED=true
$ terraform apply --auto-approve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment