Let’s Get Certified
Module 10 / 17 · Identity and access management

Choose a temporary identity for each caller

A deployment job runs outside AWS and has an OIDC identity from its build system. A developer also needs console access through the corporate directory. Should they share a long-lived IAM user?

Choose a temporary identity for each caller

Federate an employee directory, obtain temporary credentials for a customer application and investigate failed sign-in events.

Work through the decision

A deployment job runs outside AWS and has an OIDC identity from its build system. A developer also needs console access through the corporate directory. Should they share a long-lived IAM user?

Check your reasoning

Federate the job to a role that trusts its issuer and approved claims. Give the developer workforce access through IAM Identity Center and assigned permission sets. Log the resulting session identity so a reviewer can trace each action.

Cert Espresso · 2:04:01

Interpret the evidence

IAM Identity Center
Connects workforce identities to account assignments and permission sets for centrally managed access.
Web identity federation
A trusted OIDC token can be exchanged for short-lived role credentials under constrained trust conditions.
Amazon Cognito user pool
Provides customer sign-up and sign-in and issues identity tokens for applications.
IAM Roles Anywhere
Uses an eligible X.509 certificate and trust anchor to obtain temporary credentials for workloads outside AWS.
STS role session
Temporary role credentials carry an expiration time. Refresh via the intended credential provider before expiry.

Practice the guide skills

  1. Choose identities for a corporate employee, a customer and a workload outside AWS. Identify who verifies each identity and what is presented to AWS. Watch 2:04:01
  2. Map the external assertion or certificate to temporary credentials. Record the approved issuer, identity conditions, audience where applicable and maximum session duration. Watch 2:06:12
  3. Separate a failed sign-in, a rejected assume-role trust condition, an expired session and an authorization denial. Choose the appropriate identity or audit records for each. Watch 2:08:31

Official objectives for this lesson

Read an OIDC trust decision

A deployment role expects one issuer, an AWS STS audience and the release branch. Compare its conditions with the signed assertion.

Expected subject   repo:example/ledger:ref:refs/heads/release
Observed subject   repo:example/ledger:ref:refs/heads/test
Expected audience  sts.amazonaws.com
Observed audience  sts.amazonaws.com

The subject mismatch explains a trust denial even when signature and audience checks pass. Use the intended branch or revise a legitimately changed trust design after review. Evaluate the session’s resource permissions only once assumption succeeds.

Related lesson · Delegate access within enforceable limits

Knowledge check

Choose a temporary identity for each caller quiz

Answer 3 questions. Check each answer for an explanation.