Attach a policy to a group that grants permission to call sts:AssumeRole for the desired role:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "123", "Effect": "Allow", "Action": [ "sts:AssumeRole" ], "Resource": [ "arn:aws:iam::123456789012:role/desired-role" ] } ] }
Also, attach the Trust Policy for the role . The policy example (below) trusts any user in the account, but sts:AssumeRole permissions (above) will also be required to take on the role.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::123456789012:root" }, "Action": "sts:AssumeRole" } ] }
source share