Sub topic 1
How IAM Identity Center fits into a multi-account setup
Prerequisites
This chapter assumes you already know the following:
- Basic IAM: users, roles, policies, and the JSON policy structure.
- AWS Organizations: the management account, member accounts, and organizational units (OUs).
- How to run AWS CLI commands and read their JSON or text output.
- What single sign-on (SSO) and an identity provider (IdP) are.
You do not need prior experience with IAM Identity Center. This chapter gives you the working model that the later chapters build on.
The problem it solves
With one AWS account, IAM users and roles are manageable. With dozens of accounts, the usual approach breaks down:
- Creating an IAM user in every account means many long-lived passwords and access keys.
- Keeping role trust policies consistent by hand is slow and error-prone.
- Removing a person who leaves the company means visiting every account.
AWS IAM Identity Center moves this work to one place. You define who a person is once, define what they can do as a permission set, and assign the two together to accounts. Identity Center then creates IAM roles in each target account and hands users short-lived credentials when they sign in.
The main pieces
| Piece | What it is |
|---|---|
| Instance | The Identity Center deployment. An organization instance serves the whole AWS Organization. |
| Identity store | The directory of users and groups that Identity Center uses. |
| Permission set | A template of policies that becomes an IAM role in each account where it is used. |
| Account assignment | A link between one principal (a user or group), one permission set, and one account. |
| AWS access portal | The web page where users pick an account and role, and the source of CLI sign-in. |
The rest of this tutorial works through these pieces. This chapter shows how they connect.
Organization instance and account instance
Identity Center comes in two kinds of instance.
An organization instance is the one that grants access to AWS accounts. You enable it from the management account of an AWS Organization. An organization has at most one. It requires that Organizations has all features enabled, not only consolidated billing.
An account instance belongs to a single member account. It supports assignments to supported applications only. It cannot grant access to AWS accounts. This tutorial is about the organization instance, so "Identity Center" means that from here on.
Two details catch people out:
- The instance lives in one Region, called its home Region. You choose it when you enable the service. To change it later, you must delete the instance and set it up again, which also removes your assignments and permission sets. Pick the Region deliberately.
- Identity Center is a global-feeling service with a regional anchor. Users sign in to the access portal from anywhere, but the configuration APIs (
sso-admin,identitystore) must be called against the home Region.
You can look at the instance from the CLI. Run this in the management account, with the Region set to the home Region:
aws sso-admin list-instances \
--region us-east-1 \
--query 'Instances[].{Arn:InstanceArn,Store:IdentityStoreId,Status:Status}' \
--output tableThe output has three values you will reuse in later chapters: the instance ARN (arn:aws:sso:::instance/ssoins-...), the identity store ID (d-...), and the status. Almost every sso-admin command takes the instance ARN.
How the pieces turn into access
The flow has two phases. Administrators configure access. Users then use it.
In words:
- You create a permission set, for example
ReadOnlyAuditor, containing the AWS managedReadOnlyAccesspolicy. - You create an account assignment: the
Auditorsgroup, theReadOnlyAuditorpermission set, and account111122223333. - Identity Center provisions the permission set into that account. It creates an IAM role there.
- A member of
Auditorssigns in to the access portal, sees the account and the role, and selects it. - Identity Center issues temporary credentials for that role. The credentials expire when the session duration ends.
No IAM user exists at any point. Access is a role session.
What appears in a member account
Provisioning is the step that connects Identity Center to ordinary IAM. After it runs, each target account contains:
- A role named
AWSReservedSSO_<PermissionSetName>_<suffix>, where the suffix is a generated hash. Its path starts with/aws-reserved/sso.amazonaws.com/. - A SAML identity provider named like
AWSSSO_<hash>_DO_NOT_DELETE. The role's trust policy points to it. - A service-linked role,
AWSServiceRoleForSSO, which lets Identity Center manage these resources.
You can confirm this from inside a member account:
aws iam list-roles \
--path-prefix /aws-reserved/sso.amazonaws.com/ \
--query 'Roles[].RoleName' \
--output textIf the output is empty, either nothing has been assigned to this account or provisioning has not completed.
Where it differs from what you may already use
| Approach | Credentials | Where users are defined | Cost of adding an account |
|---|---|---|---|
| IAM users per account | Long-lived keys and passwords | Every account | Recreate users and policies |
| Cross-account roles from a hub account | Short-lived, through `AssumeRole` | Hub account, plus a trust policy in each target | Create a role and trust policy in each target |
| IAM Identity Center | Short-lived, through the access portal | One identity store | Add assignments, and Identity Center creates the roles |
A hub-account model can work, but you maintain the trust policies and role definitions yourself. Identity Center manages both, and it is also the supported way to sign in from an external IdP across an organization. For a small number of accounts with no central directory, the extra moving parts may not pay off. As the account count grows, they do.
Where Identity Center stops
Keep these boundaries in mind so you do not expect more than the service provides:
- It controls how people reach accounts. It does not replace IAM inside each account. The role it creates is still limited by service control policies, permissions boundaries, and resource policies.
- It is for workforce users. Workloads such as EC2 instances and Lambda functions keep using IAM roles, not Identity Center.
- Permission sets are not IAM roles themselves. They are definitions in the home Region that become roles only after assignment and provisioning. A permission set that is never assigned creates nothing in any account.
- Nothing is real-time. A change to a permission set that is already provisioned is not pushed to accounts until you re-provision it, a topic covered in a later chapter.
Check your understanding
Exercise
A colleague creates a permission set named DevAccess in the management account but has not assigned it to anyone. They ask you why aws iam list-roles --path-prefix /aws-reserved/sso.amazonaws.com/ in member account 111122223333 shows no AWSReservedSSO_DevAccess_* role. What is the reason, and what has to happen before the role appears?
Show answer
A permission set is only a definition stored in Identity Center's home Region. A role is created in a member account only when the permission set is part of an account assignment that targets that account (a principal, the permission set, and the account) and provisioning completes. After the colleague creates the assignment and provisioning succeeds, the role AWSReservedSSO_DevAccess_<suffix> appears in the account.
Exercise
Your organization enabled Identity Center in us-east-1. A manager asks to move it to eu-west-1 to be closer to the team. What is the constraint, and what does the change cost?
Show answer
The home Region of an Identity Center instance cannot be changed in place. Moving it means deleting the instance and creating a new one in eu-west-1, which removes the existing permission sets and assignments. You would have to recreate them and re-provision. The practical advice is to choose the home Region carefully at the start.