Access management in practice
Space Llama covers how access works day to day, with AWS IAM Identity Center and federation, temporary credentials from AWS STS, cross-account roles, secrets storage and rotation, and AWS Organizations.
After this lesson you can
- Explain single sign-on and federation with AWS IAM Identity Center
- Describe temporary credentials and the role of AWS STS
- Explain how cross-account roles grant access between accounts
- Choose between AWS Secrets Manager and Parameter Store
- Describe why credentials should be rotated
Transcript
Access management in practice
Last time, we met IAM users, groups and roles. Now let's see how access works in real life. We'll cover single sign-on with AWS IAM Identity Center, and temporary credentials. Then cross-account roles, where to keep secrets, and rotating credentials. And a quick hello to AWS Organizations.
AWS IAM Identity Center
Creating an IAM user for every person in every account gets messy fast. AWS IAM Identity Center gives people one sign-in for many AWS accounts and applications. That's single sign-on. You can keep users in Identity Center itself, or connect your existing identity provider. Microsoft Entra ID and Okta are common examples. Trusting an identity provider you already use is called federation. People keep one set of credentials. Permission sets define what each person can do in each account. When people sign in, they get temporary credentials automatically. No long-term keys to look after.
Temporary credentials and AWS STS
Under the hood, temporary credentials come from AWS Security Token Service. AWS STS for short. It issues short-lived credentials on request. Assuming a role uses it. So does federation, and so does Identity Center. These credentials expire on their own, after a set time. So there's nothing long-lived to leak. That's why AWS prefers roles over access keys.
Cross-account roles
Most companies run more than one AWS account. So how does someone work across them? You create a role in one account, and its trust policy names another account that's allowed to assume it. People in the trusted account switch to that role. Nobody needs a second user. This is common for auditors and for shared tools that reach into many accounts.
Where to keep secrets
Applications need secrets too, like database passwords. Never hard-code them. AWS Secrets Manager is built for secrets like database passwords and API keys. Its big feature is automatic rotation, built in. Secrets are encrypted with AWS Key Management Service. Parameter Store is part of AWS Systems Manager. It holds configuration values and simple secrets, in a tidy hierarchy. A SecureString parameter is encrypted with AWS KMS too. But Parameter Store has no built-in automatic rotation. So if a question says rotate secrets automatically, the answer is Secrets Manager.
Rotate credentials
Any credential that lives a long time should change now and then. Rotate access keys and passwords regularly, so a leaked one stops working. Remove access keys and users nobody uses. IAM shows when each key was last used. Better still, prefer roles over long-term keys. Then there's nothing to rotate.
AWS Organizations, briefly
One more name for now. AWS Organizations lets you manage many accounts as one organization. Separate accounts are a security tool. A mistake or an attack in one account stays in that account. We'll tell the full story in the governance lesson.
Recap
Let's recap. Use AWS IAM Identity Center for single sign-on and federation. AWS STS issues the temporary credentials behind roles and sign-in. Cross-account roles mean no extra users in every account. Secrets Manager stores and rotates secrets. Parameter Store stores configuration and simple secrets. And rotate your credentials, or better, use roles.
Practice and what's next
That's access management. Fewer passwords, more roles. Everyone sleeps better. Practice Security and Compliance questions in Gazeek Flash to see what stuck. The AWS app is free on the web and on Android, at flash.gazeek.com. Next up, Network security: security groups, network ACLs, WAF and Shield. See you there.
Gazeek Flash · free
Exam questions on your phone
Free questions on Security and Compliance: quick-fire batches and timed exams, on the web or Android.




