Score:0

Creating an IAM role that has a trust relationship with another account

cn flag

I have 2 AWS accounts, Account#1 and Account#2.

In Account#2, I am creating a role that has a trust relationship with Account#1 like:

"Statement" : [
    "Sid" : "",
    "Effect" : "Allow",
    "Principal" : {
       "AWS" : "arn:aws:iam::123:root"
    },
    "Action": "sts:AssumeRole"
]

When doing this, doesn't Account#1 have to somehow allow Account#2 to create this trust relationship? If yes, where does this happen?

Score:0
la flag

Looks like you want to Switch Role from one account to the other. The "receiving account" doesn't need to know about this but you, as a user, definitely do.

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-console.html

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.