Accounts, identity and guardrails
Unit 3 of 5 in Cloud fundamentals and shared responsibility.
You will be able to protect a new cloud account and explain what organization-wide guardrails do.
Lesson
The account is the front door
AWS's IAM best practices start with identity. They say to require human users to use federation with an identity provider and temporary credentials, to require workloads to use temporary credentials through IAM roles, to require multi-factor authentication, to update access keys when long-term credentials are needed and to protect root user credentials. When you create an AWS account you establish root user credentials, and AWS says to safeguard them the way you would protect other sensitive personal information.
AWS recommends roles that give temporary credentials for people and workloads. Where an IAM user or the root user is still needed, it says to require MFA.
Least privilege, step by step
The same guide says to apply least-privilege permissions, to start with AWS managed policies and move toward least privilege, and to use IAM Access Analyzer to generate least-privilege policies from actual access activity. This is the Foundations idea of least privilege applied to a cloud, where a permission is a line of JSON and a mistake can open a whole account.
Many accounts, one set of limits
AWS Organizations lets you centrally manage and govern many accounts: create accounts, group them, apply policies for governance and simplify billing. It integrates with other AWS services so central security configurations and audit requirements can span accounts.
Service control policies (SCPs) give central control over the maximum permissions for the IAM users and roles in the organization's accounts. AWS says an SCP does not grant any permission; it sets a guardrail, a limit, and an administrator still has to attach ordinary identity-based or resource-based policies to grant access. SCPs are available only in an organization with all features enabled. The result: even an account administrator cannot do what the organization's guardrail forbids.
Key points
- Prefer federation and temporary credentials over long-term keys; require MFA where users or root remain.
- Protect root credentials like the most sensitive thing in the account.
- Start with managed policies and tighten with Access Analyzer.
- SCPs set limits across accounts and never grant access themselves.
Sources
- AWS IAM User Guide: Security best practices in IAM
- AWS Organizations User Guide: What is AWS Organizations?
- AWS Organizations User Guide: Service control policies (SCPs)
Practice in the labs
Secure your own account, then set up a read-only identity and a guardrail.
- Set up a cloud account the secure way (AWS Free Tier): You turn on MFA for root, create a limited admin user and set a billing alarm in your own account.
- Install and configure the AWS CLI the safe way — named profiles, no root keys, and a LocalStack fallback: You set up the command line with a read-only identity and a local fallback if you prefer not to use a real account.
- Create a read-only assessor role in your OWN AWS account and assume it with MFA: You make a role you assume with MFA for review work, so a slip cannot change anything.
- Set org-wide guardrails with AWS Organizations SCPs: You write and test a guardrail policy that limits what accounts can do. A single free account is enough.
Knowledge check
- Does a service control policy grant permissions? Answer: No; it sets a limit, and other policies must grant access. AWS says SCPs do not grant permissions; they define a permission guardrail.
- What does AWS recommend for people and workloads that access AWS? Answer: Federation or roles that give temporary credentials. The IAM best practices say to require temporary credentials for human users and for workloads.
- Why is the root user treated so carefully? Answer: Its credentials are created with the account and must be safeguarded like the most sensitive information. AWS says to protect root credentials the way you protect other sensitive personal information, and to require MFA for it.
Back to the syllabus or see all classes.
Related
- Cloud fundamentals and shared responsibility
- Set up a cloud account the secure way (AWS Free Tier)
- Install and configure the AWS CLI the safe way — named profiles, no root keys, and a LocalStack fallback
- Create a read-only assessor role in your OWN AWS account and assume it with MFA
- Set org-wide guardrails with AWS Organizations SCPs
- All classes
- Free cyber labs