Skip to content
/ aws-access Public

A script to enable AWS Console Role Switching

Notifications You must be signed in to change notification settings

jg3/aws-access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

aws-access/please

This is a script to easily configure and enable AWS Console Role Switching.

  1. Log into the AWS Console for account you want to provide access TO.
  2. Open CloudShell in the AWS Console, paste in this string:
    bash <(curl -s https://raw.githubusercontent.com/jg3/aws-access/main/please)
  3. You will be prompted to put in the AWS Account ID to allow access FROM, the rest is automatic.
  4. Log out of the AWS account to provide access TO.
  5. Log into the AWS account to get access FROM.
  6. Paste the URL provided by the script into your browser.

WARNING:
This script enables full access to your account, so be sure the FROM account is well protected (e.g. with MFA).

Note(s):
. there's a way to include a check for MFA in the Role JSON, but it didn't work in my SAML envoronment.
. it would likewise be possible to create or attach a policy with something less than AdministratorAccess.

AwsSwitchRole

About

A script to enable AWS Console Role Switching

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages