Skip to content

Instantly share code, notes, and snippets.

@danifitz
Created February 21, 2023 16:18
Show Gist options
  • Select an option

  • Save danifitz/d5f585fcfc4517b612979a01ca2aad9a to your computer and use it in GitHub Desktop.

Select an option

Save danifitz/d5f585fcfc4517b612979a01ca2aad9a to your computer and use it in GitHub Desktop.
iamlive-to-iam-policy.md

Using iamlive to proxy AWS CLI commands to get an least-privilege IAM policy for remediation templates

Install brew install iann0036/iamlive/iamlive Open a terminal window and start the proxy iamlive --set-ini --profile NAME_OF_AN_AWS_PROFILE --mode proxy Open a new terminal window where you will run AWS CLI commands Tell the AWS CLI which CA Bundle to use export AWS_CA_BUNDLE=~/.iamlive/ca.pem Set proxy settings

export HTTP_PROXY=http://127.0.0.1:10080 export HTTPS_PROXY=http://127.0.0.1:10080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment