Set Up Service User or Service Role
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"sts:AssumeRole"
],
"Resource": "arn:aws:iam::<<AWS account ID>>:role/<<cross account role name>>"
}
]
}
Where << cross account role name >> is a cross account role that has the customer managed / inline policies mentioned above and it enables the service account / role to perform all the necessary tasks needed for the source.
Note
This policy must be created under each AWS account that you want to manage. The <<AWS account ID>> above is the ID of the Master Account ID.
GetUserInlinePolicy Document
iam:GetUser
API permission is required when the authentication method is IAM User and you want to manage organization group objects.
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"iam:GetUser"
],
"Resource": "arn:aws:iam::<Service User's AWS Account Id>:user/<<Service User name>>"
}
]
}