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
已提問 3 個月前檢視次數 153 次
1 個回答
1
已接受的答案

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
專家
已回答 3 個月前
profile picture
專家
已審閱 2 個月前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南