- https://aws.amazon.com/es/blogs/aws/new-cross-account-access-in-the-aws-management-console/
- Type: article
- Source: AWS News Blog · Jeff Barr · Jan 2015
TL;DR
The console’s Switch Role option lets an IAM user or federated identity work in another account through an IAM role, without a second login.
Summary
The feature is built on IAM roles, which are not tied to a user and give temporary credentials when assumed. After signing in, a user chooses Switch Role, enters the account and role, optionally sets a display name and menu colour, and the console assumes that role. The console generates role-switching URLs and remembers up to five roles; administrators must set up the roles and groups first.
Key takeaways
- Switch without credentials: no separate user name or password for each account.
- Steps: user name menu, Switch Role, enter account and role, optional display name and colour.
- Switch back by choosing the original identity.
- Useful for splits such as development and production in different accounts.
- Limit: the console remembers five roles; administrators prepare the IAM roles and groups.
Tools and concepts
| Item | Role in the page |
|---|---|
| IAM | Roles and temporary credentials |
| AWS | Management Console |
| Security | Access separation between accounts |
When to use
- When setting up multi-account access for people.
- When you need the origin of the Switch Role feature.
- When connecting to EKS access, see Enable an IAM User or IAM Role to access an EKS cluster.
Caveats
- 2015 announcement; it leaves trust policies and administrator setup to a separate security post.
AWS IAM Security Enable an IAM User or IAM Role to access an EKS cluster