Delegate access across AWS accounts using IAM roles

0

I am working through this tutorial Delegate access across AWS accounts using IAM roles

The purpose of this tutorial is to demonstrate that users from the Developer account can use role to access the productionapp bucket in the Production account.

In the tutorial, two user groups Testers and Developers are created with one user in each. At first I thought these are the user groups in Identity Center but later realised they are actually IAM User Group. Refer to the tutorial:

To modify the testers user group to deny permission to assume the UpdateApp role

  1. According to the best practice should we not always use Identity Center to create Users/Groups?
  2. Can we actually achieve this tutorial with users created in Identity Center? That is allow users to switch role without using IAM users.
profile picture
Lottie
asked 3 months ago134 views
1 Answer
1
Accepted Answer

The documentation page you link to talks about delegating access from a role in one account to a role in another account. This is pretty much what you want to do.

How those roles are assumed in the first account is more or less irrelevant. The example in the documentation talks to creating static users that have the role assigned to them - that's one way (which happens to work for smaller environments). But you're absolutely correct: we recommend using Identity Center - because when users authenticate via Identity Center they are assigned to specific roles. And those roles can be used as per the example in the documentation.

profile pictureAWS
EXPERT
answered 3 months ago
profile picture
EXPERT
reviewed a month ago
  • Do we not use permission set to control access for Identity Center users? Is there really a way to assign role an Identity Center user? What do you mean by static users and that is one way?

  • "Static users" are users created in IAM - you have said you don't want to do that (which is a good thing!).

  • Thanks Brettski-AWS. Found this post that explains switching role for Identity Center user: https://repost.aws/questions/QUSm-PF3zxSf6Rsj-8W75XGA/role-switch-iam-identity-center-user. Permission set defined in Identity Center looks after role assignment.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions