Sub topic 9
Signing in with IAM Identity Center
This chapter assumes you know IAM users, roles and policies, can use the AWS Management Console and AWS CLI, and have read the earlier chapters on launching the landing zone and the Log Archive and Audit accounts. It covers how people sign in to the accounts that Control Tower creates, which groups and permission sets it sets up, and the errors you are most likely to hit.
Why Control Tower uses IAM Identity Center
A landing zone can hold dozens or hundreds of accounts. Creating an IAM user in each one does not scale. Every user needs its own password, its own access keys and its own offboarding step.
AWS IAM Identity Center is the AWS service that solves this. It keeps one directory of workforce users and groups. It maps them to roles in member accounts through permission sets. A person signs in once at an access portal URL, picks an account and a role, and receives short-lived credentials.
When you launch a landing zone, Control Tower can set up IAM Identity Center for you. This is the default and recommended choice. You can also choose self-managed identity, where you configure your own federation. The rest of this chapter describes the default.
What Control Tower creates
During launch, Control Tower enables IAM Identity Center in your organization. It does this in your home Region. It then creates the following resources.
| Resource | Purpose |
|---|---|
| Identity Center directory | The built-in user store that holds users and groups |
| AWSControlTowerAdmins group | Administrators of the landing zone |
| AWSAuditAccountAdmins group | Administrators of the Audit account |
| AWSSecurityAuditors group | Read-only auditors across accounts |
| AWSSecurityAuditPowerUsers group | Power users for security investigation |
| AWSServiceCatalogAdmins group | Administrators of Account Factory products |
| AWSLogArchiveAdmins and AWSLogArchiveViewers groups | Admin and read-only access to the Log Archive account |
| Permission sets | Named bundles of policies, such as AWSAdministratorAccess and AWSReadOnlyAccess |
The exact list of groups can differ between landing zone versions. Check the console under IAM Identity Center, then Groups, rather than relying on this table.
The launch also creates a user for the person who set it up. The Control Tower documentation describes it as an administrator user in the AWSControlTowerAdmins group. That user receives an invitation email to the address you supplied for the management account.
The relationship between users, groups, permission sets and accounts looks like this.
The key idea is that you assign access to groups, not to individual users. A permission set is a template. When you assign it to a group on an account, Identity Center creates a role in that account. The role's name starts with AWSReservedSSO_. Do not edit or delete these roles by hand. Identity Center manages them and will overwrite your changes.
First sign-in
Follow these steps after the launch finishes.
- Open the invitation email sent to the address you entered for the Control Tower administrator user.
- Accept the invitation and set a password.
- Register a multi-factor authentication (MFA) device when Identity Center prompts you.
- Open the access portal URL. It has the form
https://d-xxxxxxxxxx.awsapps.com/start, or a custom alias if you set one. - Pick an account, then pick a role such as
AWSAdministratorAccess, and choose Management console.
Find the portal URL in the IAM Identity Center console on the Dashboard page, under Settings summary. Save it somewhere shared. Invitation emails expire, and you will need the URL again for every new person.
Using the AWS CLI with Identity Center
The CLI uses the same sign-in. You configure an SSO profile once, then sign in with a browser. The tutorial's earlier commands, such as aws controltower list-landing-zones, run under this profile.
aws configure ssoThe command asks for these values:
- SSO session name: any label, for example
landing-zone. - SSO start URL: your access portal URL.
- SSO region: the Region where Identity Center is enabled, which is your home Region.
- SSO registration scopes: accept the default
sso:account:access.
After a browser sign-in, the CLI lists the accounts and roles you can use and asks you to pick one and name the profile. Later, refresh your credentials and verify them.
aws sso login --profile ct-admin
aws sts get-caller-identity --profile ct-adminThe get-caller-identity output shows an assumed-role ARN containing AWSReservedSSO_. That confirms you are using Identity Center credentials and not an IAM user.
The credentials expire. The session duration is set on the permission set, with a default of one hour for the role session. The portal session is separate and is configured in Identity Center settings. When commands start failing with an expired token error, run aws sso login again.
Adding people
Use groups for all access. The usual sequence is:
- Create a user in Identity Center, or let your external identity provider sync it.
- Add the user to a group such as
AWSSecurityAuditors. - Confirm the group is assigned the right permission sets on the right accounts.
Control Tower sets up these assignments for its own groups. For example, AWSLogArchiveAdmins gets access to the Log Archive account. If you create your own groups, such as Developers, you assign them to accounts yourself in the Identity Center console under AWS accounts.
You can also assign access when you create an account in Account Factory. The next chapters cover that flow. Each account needs an Identity Center user as its account owner. Control Tower uses that user's email and name when it provisions the account.
Connecting an external identity provider
Most companies already have a directory, such as Microsoft Entra ID, Okta or Active Directory. You have two options.
- Connect it as the identity source. Identity Center then trusts that provider. Users sign in through it. Provisioning of users and groups usually uses SCIM, which is a standard protocol for syncing identities.
- Keep the built-in directory. This is fine for a small team or a lab.
Change the identity source with care. Switching it removes the existing user and group assignments in Identity Center, because they refer to users in the old directory. Plan the change before you have many accounts, and recreate the group assignments afterward. The groups Control Tower created must exist in the new source with the same names, or you must reassign the permission sets yourself.
Common errors and gotchas
You cannot find the Identity Center settings. Identity Center is a Regional service. It lives in the home Region you chose at launch. If the console shows "enable IAM Identity Center" in another Region, switch back to the home Region. Do not enable a second instance.
The invitation email never arrives. Check spam. If the link has expired, open IAM Identity Center, select the user, and send a new email. You can also reset the password from the user page.
An account does not appear in the portal. The user's groups have no permission set assigned on that account. Check the assignments for the account. A newly enrolled account may also take a few minutes to show up.
aws sso login succeeds but commands fail with an access error. The role is signed in correctly, but its permission set does not allow the action. AWSReadOnlyAccess cannot call enable-control, for example. Use a profile that maps to an administrator permission set.
A service control policy blocks an action. SCPs apply to roles that Identity Center creates, just like any other role. An access denied message that names an explicit deny from an organization policy comes from an SCP or a control, not from the permission set.
The permission set change did not apply. After you edit a permission set, Identity Center must re-provision it to each assigned account. The console shows a banner for this. Select the re-provision action.
Control Tower drift after changing access. Control Tower expects its own groups, permission sets and assignments. Deleting AWSControlTowerAdmins or removing its assignments can show up as drift or cause failures on later updates. Add your own groups next to the ones Control Tower made.
Check the setup
Run these checks after the first sign-in.
- Confirm you can open the Control Tower console through the portal and not as root.
- Confirm the
ct-adminprofile returns anAWSReservedSSO_role fromget-caller-identity. - Confirm MFA is required for every user, in Identity Center under Settings, then Authentication.
- Confirm that at least two people belong to
AWSControlTowerAdmins, so one person leaving does not lock you out.
Exercise
You run aws sts get-caller-identity and the ARN contains AWSReservedSSO_AWSReadOnlyAccess. You then run aws controltower enable-control and get an access denied error. Why does it fail, and what do you change?
Show answer
The profile uses a role created from the read-only permission set, which does not allow changing controls. The sign-in itself works. Sign in with a profile that maps to an administrator permission set on the management account, such as one for AWSAdministratorAccess, or have your group assigned a permission set that allows Control Tower actions.
Exercise
A developer joins your company and needs access to a new member account. Which object do you add them to, and why not create an IAM user in that account?
Show answer
Add the developer to an Identity Center group that is assigned a permission set on that account. An IAM user would need its own password and keys, would not be covered by central MFA and offboarding, and would not scale across accounts. Group assignment gives short-lived credentials and one place to remove access.