When created, the OperatorUser has absolutely no permissions.
To allow the OperatorUser to assume the AdminRole, we need to grant the OperatorUser permission to assume the role.


An inline policy is a permission assigned directly to an IAM User and cannot be reused for another IAM User.
<ACCOUNTID> with the Account ID you are using where you previously created the AdminRole.{
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::<ACCOUNTID>:role/AdminRole"
}
}

Name the inline policy AllowSwitchAdminPolicy.
Click Create Policy.
