Sub topic 3
Signing in to the Management Console
This chapter assumes you know what an AWS account is, can read basic JSON, and have used a terminal. It covers how sign-in works for each identity type, what happens after you authenticate, and the errors learners hit most often.
What sign-in actually does
The AWS Management Console is the web interface at console.aws.amazon.com. Signing in proves who you are and creates a browser session. The session carries temporary credentials, and every click you make in the Console becomes an API call made with those credentials. The Console does not have special powers. If a policy denies an action in the CLI, the same action is denied in the Console.
Which sign-in page you use depends on the identity type you have. The previous chapter introduced three: the root user, IAM users, and IAM Identity Center users.
| Identity | Where you sign in | What you enter | Typical use |
|---|---|---|---|
| Root user | The main sign-in page, "Root user" option | Account email, password, MFA code | Rare account-level tasks only |
| IAM user | Account-specific sign-in URL or the main page "IAM user" option | Account ID or alias, user name, password, MFA code | Legacy setups, small accounts |
| IAM Identity Center user | Your organization's AWS access portal | Directory user name, password, MFA | Day-to-day work in most organizations |
| Federated user | Your identity provider's own portal | Whatever your provider requires | Companies using an external identity provider |
Signing in as an IAM user
An IAM user belongs to one account, so the sign-in form needs to know which account to look in. You supply that as either the 12-digit account ID or an account alias. An alias is a friendly name you can set, such as example-corp, which gives you a URL of this form:
https://example-corp.signin.aws.amazon.com/consoleWithout an alias, the URL uses the account ID:
https://111122223333.signin.aws.amazon.com/consoleYou can bookmark this URL so you skip the account step. The alias must be globally unique, so a short one may already be taken.
After the password step, an IAM user with MFA enabled is asked for a one-time code or a security key touch. MFA (multi-factor authentication) means you must present a second proof, such as a code from an authenticator app, in addition to your password.
Signing in through IAM Identity Center
IAM Identity Center is the recommended way for people to reach AWS accounts. You do not sign in to a particular account. You sign in to an access portal, and the portal lists the accounts and roles you can use.
- Open the access portal URL your administrator gave you. It looks like
https://my-sso-portal.awsapps.com/start. - Authenticate with your workforce credentials and MFA.
- Expand the account you want. Each account shows one or more permission sets, which are named bundles of permissions such as
ReadOnlyorAdmin. - Choose Management console next to a permission set.
The Console then opens with a role session for that permission set. Behind the scenes, Identity Center assumes an IAM role in the target account and gives your browser temporary credentials for it. Choosing a different permission set gives you a different role session, with different permissions, in a separate browser tab.
This is the same portal and session model the CLI uses in the aws sso login flow shown later in this tutorial. The sso_start_url in a CLI profile is this portal address.
Signing in as the root user
The root user is the identity created with the account, signed in with the email address used to create it. It has unrestricted access that no IAM policy can reduce. Use it only for the few tasks that require it, such as changing the account's support plan or closing the account, and keep it locked down with MFA.
On the main sign-in page, choose Root user, enter the account email, then the password and MFA code. Do not create access keys for root, and do not use it for daily work.
Switching roles after signing in
Some organizations give you one identity and let you move into other accounts by assuming a role. In the Console this is called switching roles.
- Open the account menu in the top-right corner.
- Choose Switch role.
- Enter the 12-digit account ID of the target account, the role name, an optional display name, and an optional color.
- Choose Switch Role.
The role must have a trust policy that allows your identity to assume it. The banner and color in the account menu then show which role you are using. Choose Switch back to return. A role session obtained this way lasts for a limited time, one hour by default, after which you must switch again.
How the session behaves
The Console session is time-limited. Several details matter in practice:
- Duration. Console sessions for IAM users last up to 12 hours by default. Identity Center sessions follow the session duration configured by your administrator, and the portal session and the role session are separate clocks. Role sessions from switching are shorter, one hour by default.
- Expiry. When the session expires, actions fail with a message asking you to sign in again. Work in unsaved forms may be lost.
- One identity per browser profile. Signing in to a second account in the same browser profile signs you out of the first, unless you use the multi-session feature or separate browser profiles.
- Region is not part of identity. Signing in does not choose a Region. The Region selector, covered in the next chapter, decides where regional resources are shown. The sign-in endpoint itself is global.
Multi-session support
If you work across several accounts or roles, you can enable multi-session support from the Console's account settings or sign-in page. It lets you stay signed in to up to five sessions in one browser, each in its own tab, with a colored label identifying the session. Without it, a new sign-in replaces the old session in that browser profile. Browser profiles or private windows are the alternative if you prefer isolation.
Verifying who you are
After signing in, open the account menu in the top-right corner. It shows:
- the account ID, which you can copy
- the identity type and name, such as an IAM user name, or an assumed-role session name for Identity Center and switched roles
- links to security credentials, settings, and sign out
Compare this with what the CLI reports. Running aws sts get-caller-identity from a profile gives the account ID and an ARN that identifies the same kind of principal, so you can confirm the Console and CLI are acting as the same identity.
Common sign-in errors
| Symptom | Likely cause | What to do |
|---|---|---|
| "Your authentication information is incorrect" | Wrong password, or the wrong account ID or alias for an IAM user | Re-check the account field first, then reset the password |
| IAM user form asks for an account ID you do not know | You opened the root sign-in or a generic page | Ask your administrator for the account sign-in URL |
| MFA code rejected | Phone clock out of sync, or an old device registered | Sync the authenticator's time, wait for the next code, or ask an administrator to reset the MFA device |
| Portal shows no accounts | No permission sets assigned to you | Ask the Identity Center administrator to assign you to an account |
| "Not authorized" or "Access denied" pop-ups inside the Console | You signed in correctly, but your role lacks permission | Check which role the account menu shows and whether you need a different permission set |
| Session expired mid-task | Session duration reached | Sign in again and retry |
| Console shows the wrong account's resources | Signed in to a different account in another tab | Check the account ID in the menu before changing anything |
Practice
Exercise
You can sign in to the Console, but a page of EC2 instances says you are not authorized, and a colleague with the same password sees the instances. Name two things to check, and say what the account menu can tell you.
Show answer
Check which identity and role the session is using, and whether it has the needed permissions. You may have been signed in through a different permission set, or a switched role, than your colleague. The account menu shows the account ID and the user or assumed-role name, so you can confirm you are in the right account and role. Then ask an administrator to assign the right permission set or policy. Passwords do not carry permissions, so the same password does not mean the same access.
Exercise
Why does an IAM user need an account ID or alias to sign in, while an Identity Center user starts from an access portal URL?
Show answer
An IAM user exists inside one specific account, so the sign-in must say which account to look in. An Identity Center user exists in a central directory that spans accounts. The portal authenticates the user once, then lists the accounts and permission sets that user can open.