Federated access and temporary credentials
Federation: one identity, assigned AWS access
Federation allows AWS access based on authentication by a trusted identity source. An employee can sign in through an organization’s identity provider and receive an AWS role session rather than keeping separate permanent AWS keys. IAM Identity Center can manage access to assigned AWS accounts and applications. A permission set describes access to an account; assignments determine which people or groups receive it. A role is an AWS identity that can be assumed by trusted principals under configured rules.
What makes credentials temporary?
AWS temporary programmatic credentials consist of an access key ID, a secret access key and a session token, with an expiration time. An expired credential cannot authenticate new requests. AWS Security Token Service (STS) provides temporary security credentials. The session still needs authorization for each operation; temporary does not mean harmless. Never store actual credential values in course files, screenshots or logs. Use approved tools to refresh credentials rather than copying them into source code.
Human -> identity provider -> assigned AWS role sessionApplication -> workload role -> temporary credentialsPeople and workloads have different jobs
A human developer needs interactive access to inspect test resources. A workload is software performing a task, such as a program reading book covers. Give the human a federated session and the application an appropriate workload role where supported. For example, an application running on EC2 can obtain role credentials without embedding a personal access key. A reader application should not inherit the developer’s administrative permissions. Where a workload cannot use roles, document and tightly manage the exception instead of treating permanent keys as the default.
Practice: follow the session timeline
In an invented scenario, a session expires at 12:00 UTC. A request at 11:45 still requires a permitted action; at 12:05 the expired credentials must be replaced via an approved sign-in or refresh flow. Signing out of a console or access portal is good practice, but do not assume it instantly revokes every separately issued API credential. Explain why a short-lived administrator session is still sensitive. Next: check the account and lab plan before any operation.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Federated access and temporary credentials — knowledge check
Apply account and identity concepts to offline scenarios.
An employee signs in through a trusted identity provider. What is the recommended AWS access pattern?
Which item distinguishes a temporary API credential set from an ordinary long-term access key pair?
An EC2 application reads covers. Which approach avoids embedding a developer key?
A session expires at 12:00 UTC. At 12:05 what should the application do?
A worker signs out of the access portal. What is a safe assumption about separately issued role credentials?