Security · AWS SERVICE CHEATSHEET

AWS Identity & Access Management (IAM)

Provides authentication and authorization boundaries across AWS workloads, eliminates hardcoded secrets through EC2 instance profiles and ECS task execution roles, and enforces least privilege.

Open Interactive IAM Sandbox → Simulate in Architecture Studio

AWS Container Placement

Regional / Global Managed Scope (Outside VPC Subnets)

Summary

Centrally manage access to AWS services and resources with granular JSON policies, temporary STS credentials, and role delegation.

When to Use (SAA-C03)

Always attach least-privilege IAM Roles to EC2/Lambda/ECS instead of embedding static AWS access keys; remember Explicit Deny always overrides Allow.

Allowed Ingress Connections & Ports

Source ServiceProtocolPortArchitectural Rationale
EC2STS:AssumeRole443Instance profile token retrieval via IMDSv2
LAMBDASTS:AssumeRole443Serverless execution role initialization
ECSSTS:AssumeRole443Container task execution role credentials

Allowed Egress Targets & Ports

Target ServiceProtocolPortData Flow Rationale
S3HTTPS / SigV4443Role-authorized object operations
DYNAMODBHTTPS / SigV4443Role-authorized NoSQL queries
SQSHTTPS / SigV4443Role-authorized message send/receive
KMSHTTPS / SigV4443Role-authorized key cryptographic operations

Key Configuration Parameters & AWS Best Practices

ParameterFormat / ExamplePurpose & Rationale
Assume Role Trust Policy (assumeRolePolicy) (Required){"Version": "2012-10-17", "Statement": [{"Effect": "Allow", "Principal": {"Service": "ec2.amazonaws.com"}, "Action": "sts:AssumeRole"}]}Specifies which principals (e.g. `ec2.amazonaws.com` or specific AWS accounts) can assume the role. Why: Without an authentic trust policy statement, no entity can assume the role or receive temporary credentials.
Role Name (roleName) (Required)AppBackendEC2ServiceRoleThe unique name identifier for the IAM role. Why: Identifies the role in AWS ARNs and CloudTrail audit records.
Permissions Boundary (permissionsBoundaryArn)IAM Policy ARNSets the maximum allowable permissions boundary for the role. Why: Prevents delegated users from escalating privileges when creating new roles.
Max Session Duration (Seconds)3600The maximum duration in seconds for an assumed role session. Why: Limits exposure window of temporary STS credentials.

Practice Labs Using AWS Identity & Access Management

SAA-C03-EKS-CNI-IP-EXHAUSTION

SaaS Container Platform: EKS Worker Node VPC CNI IPv4 Exhaustion

Attach secondary CIDR 100.64.0.0/16 to VPC and provision dedicated pod subnets and ECR interface endpoints.…

SAA-C03-GITHUB-OIDC-CICD

Enterprise Cloud Security: GitHub Actions Keyless OIDC CI/CD to Private VPC

Replace static IAM credentials with GitHub OIDC Identity Provider and IAM Role with AssumeRoleWithWebIdentity …

Frequently Asked Questions

Where does AWS Identity & Access Management live inside an AWS VPC architecture?

Valid container placement: Regional / Global Managed Scope (Outside VPC Subnets). Provides authentication and authorization boundaries across AWS workloads, eliminates hardcoded secrets through EC2 instance profiles and ECS task execution roles, and enforces least privilege.

When should I use AWS Identity & Access Management on the AWS SAA-C03 exam?

Always attach least-privilege IAM Roles to EC2/Lambda/ECS instead of embedding static AWS access keys; remember Explicit Deny always overrides Allow.

Can I simulate AWS Identity & Access Management packet routing without an AWS account?

Yes. CloudTracer simulates AWS Identity & Access Management along with 53 AWS services directly in your browser and exports production Terraform HCL.

More Security Cheatsheets

Security Group → Network ACL → AWS WAF → KMS Encryption Keys → AWS Shield DDoS → Network Firewall →