Guide to AWS IAM Identity Center (SSO) & CLI Setup

Step-by-step beginner guide to setting up AWS IAM Identity Center (SSO), adding users via Groups & Permission Sets, avoiding the $2/mo KMS trap, and configuring AWS CLI v2.

Published
Dec 2, 2026
Category
AWS
Read time
7 min
Author
Zayed
On this page↓

When you create a brand-new AWS account, you start with the Root User — the email and password you signed up with. It is tempting to keep using it or to create an IAM User with permanent access keys (AKIA...) sitting in plain text on your laptop.

Don't do either. In this beginner-friendly guide, you will set up AWS IAM Identity Center (formerly AWS SSO) — AWS's modern, free best practice for signing into both the Console and the AWS CLI v2 using short-lived, temporary credentials.

Architectural Takeaway
By the end of this guide, you will have a non-root user organized cleanly in an IAM group, connected to your AWS account via AWS Organizations, and authenticated in your terminal with zero hardcoded access keys — all for $0.00/month.

Why Avoid the Root User and Static Access Keys?

Think of the AWS Root User like the master key to an entire bank vault: it has unrestricted access to everything (including closing your account), and no IAM policy can limit it.

The traditional workaround was creating an IAM User with long-lived Access Keys (AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY). The problem? Those keys never expire unless you manually rotate them. If they accidentally end up in a GitHub commit, anyone can spin up expensive resources on your bill.

IAM Identity Center solves this cleanly:

  • You sign in through a single AWS access portal (browser login).

  • Behind the scenes, AWS STS (Security Token Service) mints temporary credentials that automatically expire after a few hours.

  • Both AWS Organizations and Single-Region IAM Identity Center cost $0.00/month.

Prerequisites

  • A newly created AWS account (signed in as Root for this one-time setup).

  • AWS CLI v2 installed on your machine. Verify your version first:

aws --version

You should see aws-cli/2.x.x (AWS CLI v1 does not support the modern aws configure sso flow).

Step 1: Enable IAM Identity Center (Watch Out for the $2/mo Trap!)

  1. Sign in to the AWS Management Console as your Root user.

  2. In the top-right corner, select your primary Region (for example, US East (N. Virginia) us-east-1).

  3. Search for IAM Identity Center in the top search bar and click Enable.

  4. When prompted to enable with AWS Organizations, continue so AWS creates your organization instance.

Anti-Pattern // Common Trap
Cost Trap Alert ($2/month default!): On the Enable screen, AWS now defaults to Multi-Region Instance, which automatically creates a Customer Managed Multi-Region KMS Key across two Regions ($1/month per Region = $2/month). Before clicking Enable, switch to Single-Region Instance and verify that Encryption at rest says AWS owned key and the yellow KMS billing banner disappears. Single-Region with an AWS owned key is 100% free ($0.00/month).

Quick Beginner Question: "Is an IAM Identity Center 'Instance' an EC2 Server?"

No! After clicking Enable, you will see a green banner saying you created an "organization instance of IAM Identity Center." Don't panic — there is no EC2 server running and no hourly compute charge. In IAM Identity Center, an "instance" simply means a logical, AWS-managed identity directory for your account.

Step 2: Create a User, Group, and Permission Set

Rather than attaching permissions directly to individual users, AWS best practice is to follow this clean chain:

Component

Purpose

Example

User

Represents an individual person

dev-admin

Group

Organizes users who share the same job function

administrators

Permission Set

Defines what actions are allowed inside an AWS account

AdministratorAccess

AWS Account Assignment

Connects Group + Permission Set → AWS Account

Management Account

Follow these steps from the IAM Identity Center left sidebar:

  1. Create a User: Go to Users → Add user. Enter a username (e.g., dev-admin), your email address, and name. Open the invitation email AWS sends you and set your password.

  2. Create a Group: Go to Groups → Create group. Name it administrators, then add your new user to this group.

  3. Create a Permission Set: Go to Permission sets → Create permission set → Predefined permission set → AdministratorAccess. (Tip: Set Session duration to 4 or 8 hours so your CLI session doesn't expire mid-project.)

  4. Assign the Group to Your AWS Account: Go to AWS accounts, check the box next to your account, click Assign users or groups, switch to the Groups tab, select administrators, and attach your AdministratorAccess permission set.

Exam Specification // High Yield
DVA-C02 / DVA-C03 Mental Model: Always assign permissions to Groups (or Roles/Permission Sets) rather than directly to individual users. Under the hood, when you assign a Permission Set to an AWS account, IAM Identity Center automatically provisions an IAM Role (AWSReservedSSO_...) in that account that your user assumes via STS.

Step 3: Copy Your AWS Access Portal URL

Go back to the IAM Identity Center Dashboard. On the right side under Settings summary → AWS access portal URLs, copy your AWS access portal URL. It looks like this:

text

Keep this URL handy — it is your SSO start URL for the AWS CLI.

Step 4: Give the User AWS CLI Access (aws configure sso)

Open your terminal and run:

bash

aws configure sso --profile my-sso-profile

Use a dedicated named --profile so your SSO setup stays isolated from any older AWS profiles on your machine. Answer each prompt as follows:

text

SSO session name (Recommended): my-sso-session

SSO start URL [None]: https://d-xxxxxxxxxx.awsapps.com/start

SSO region [None]: us-east-1

SSO registration scopes [sso:account:access]: (press Enter)

Your browser will open automatically:

  1. Sign in with the new user (dev-admin) and password you created in Step 2.

  2. Click Allow to grant the AWS CLI access.

Return to your terminal and finish the last two prompts:

text

CLI default client Region [None]: us-east-1

CLI default output format [None]: json

Step 5: Verify Your Identity and Temporary Credentials

Pin your profile and Region for your current terminal session, then run two verification commands:

bash

export AWS_PROFILE=my-sso-profile

export AWS_REGION=us-east-1

aws sts get-caller-identity

aws configure list

You should see output similar to this:

json

{

"UserId": "AROAXXXXXXXXXXXXXXXXX:dev-admin",

"Account": "123456789012",

"Arn": "arn:aws:sts::123456789012:assumed-role/AWSReservedSSO_AdministratorAccess_a1b2c3d4/dev-admin"

}

And aws configure list will confirm your credentials come from sso (not static keys):

text

Name Value Type Location

---- ----- ---- --------

profile my-sso-profile env ['AWS_PROFILE', 'AWS_DEFAULT_PROFILE']

access_key ****************XXXX sso

secret_key ****************YYYY sso

region us-east-1 env ['AWS_REGION', 'AWS_DEFAULT_REGION']

Look closely at two details in get-caller-identity:

  • Arn contains :assumed-role/ (never :root).

  • aws sts get-caller-identity requires zero IAM permissions — it is your safest pre-flight check to verify who you are and which AWS account you are targeting before creating any cloud resources.

Daily Workflow: Refreshing Expired SSO Sessions

Because SSO credentials are temporary, your token will eventually expire (for example, the next morning). You never need to re-run aws configure sso. Just run:

aws sso login --profile my-sso-profile

Approve in your browser, export AWS_PROFILE=my-sso-profile, and you are right back in business.

Architectural Takeaway
Before creating your first cloud resources, also visit Billing and Cost Management → Budgets and set up a free $5 monthly cost budget (or Zero-Spend budget) with email alerts. Combined with SSO temporary credentials, your account is now both secure and cost-protected!

Quick Knowledge Check

Scenario Checkpoint
Why should developers use AWS IAM Identity Center (aws configure sso) instead of storing IAM User access keys in ~/.aws/credentials?
→
Architecture Rationale
IAM Identity Center issues short-lived temporary credentials via AWS STS that automatically expire, eliminating the risk of leaked long-lived static AKIA... access keys.

Scenario Checkpoint
Which AWS CLI command safely verifies your active IAM identity and target Account ID even if your role has zero permissions?
→
Architecture Rationale
aws sts get-caller-identity — it is always allowed for any valid IAM principal and requires no explicit IAM policy.

#AWS IAM Identity Center #AWS SSO setup #AWS CLI configure sso #AWS Organizations beginner guide #temporary credentials STS
Share: