Learning Objectives
By the end of this chapter, you will be able to:
- Implement identity and access management at scale across many AWS accounts, including automated response to security findings through Amazon EventBridge, AWS Lambda, and AWS Systems Manager Automation.
- Implement IAM roles, users, groups, and policies with least privilege, permission boundaries, and attribute-based access control, and operate automated patching and vulnerability management through AWS Systems Manager Patch Manager and Amazon Inspector.
- Configure federation and single sign-on through AWS IAM Identity Center using SAML 2.0 and OpenID Connect, and align those identity controls with data protection and compliance practices.
- Configure cross-account access through IAM roles and resource-based policies, and implement encryption at rest and in transit through AWS Key Management Service, AWS Certificate Manager, and AWS Private CA.
- Configure AWS Organizations and service control policies to govern access at scale, and manage secrets and sensitive configuration through AWS Secrets Manager and AWS Systems Manager Parameter Store SecureString.
- Automate security controls and remediation across accounts, including key rotation and cross-account key sharing for customer-managed KMS keys.
- Configure AWS Config rules for compliance and automated remediation, and produce audit and compliance logging through AWS CloudTrail organization trails, AWS Config, and CloudTrail Lake.
- Configure AWS Security Hub, Amazon GuardDuty, Amazon Inspector, and Amazon Macie for centralized security findings, and validate compliance frameworks through AWS Audit Manager.
Executive Summary
- Identity at professional scale is account-aware: permission boundaries, attribute-based access control, IAM Identity Center permission sets, and Organizations service control policies form a four-layer perimeter that no single principal can step outside.
- Cross-account access flows exclusively through
sts:AssumeRoleagainst IAM roles with trust policies tied toaws:PrincipalOrgID, source-account conditions, and external IDs; long-lived IAM users in target accounts are an anti-pattern. - Data protection is implemented through customer-managed AWS KMS keys with imported or AWS-issued material, automatic annual rotation, key policies that grant
kms:CreateGrantto consuming services, and ACM Private CA for internal TLS issuance. - Detective controls (AWS Config, AWS Security Hub, Amazon GuardDuty, Amazon Inspector, Amazon Macie) feed Amazon EventBridge, which routes findings to AWS Systems Manager Automation runbooks or AWS Lambda for closed-loop auto-remediation that records every action in AWS Systems Manager OpsCenter and AWS CloudTrail Lake.
- AWS Audit Manager maps the entire pipeline into named frameworks, collecting evidence from AWS Config, AWS CloudTrail, AWS Security Hub, and resource APIs without operator effort.
Assumptions
- Multi-account topology with an Organization, a delegated administrator account for Security Hub, GuardDuty, Inspector, Macie, Config, and Audit Manager, and a separate Log Archive account that holds organization-wide AWS CloudTrail and AWS Config aggregator targets.
- IAM Identity Center is the human identity plane; long-lived IAM users exist only for break-glass and a small set of programmatic principals that must be IP-restricted.
- All sample CLI calls assume profiles configured for the relevant account context and a Region of
us-east-1unless a service is opt-in only outside that Region. - The AWS Organizations management account is reserved for billing and Organizations APIs; security tooling runs in delegated administrators per AWS guidance from prior chapters.
