AWS for Platform Engineers›Modules · Cheat sheet & self-check
Learning Hub / Cloud — OpenStack, AWS & EKS / AWS for Platform Engineers

Modules · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

01 · IAM in depth

Who am I, what can I do?

aws sts get-caller-identityAccount and ARN of the current credentials
aws sts assume-role --role-arn <arn> --role-session-name ashaGet temporary credentials for a role
aws iam simulate-principal-policy --policy-source-arn <arn> --action-names s3:GetObject --resource-arns <arn>Would this be allowed?
aws iam list-attached-role-policies --role-name <role>Managed policies on a role

Evaluation in one line

explicit Deny > explicit Allow > implicit denyAny matching Deny wins; otherwise you need an Allow

02 · VPC design

Inspect

aws ec2 describe-vpcs --query 'Vpcs[].[VpcId,CidrBlock]' --output tableVPCs and their CIDRs
aws ec2 describe-subnets --filters Name=vpc-id,Values=<vpc> --query 'Subnets[].[SubnetId,AvailabilityZone,CidrBlock,AvailableIpAddressCount]' --output tableSubnets per AZ and free IPs
aws ec2 describe-route-tables --filters Name=vpc-id,Values=<vpc>Where each subnet's traffic goes
aws ec2 describe-vpc-endpointsPrivate endpoints to AWS services

Remember

5 reserved IPs per subnetAWS reserves the first four and the last address
Security groups are statefulReturn traffic is allowed automatically
NACLs are statelessAllow both directions, including ephemeral ports

03 · Compute

Instances

aws ec2 describe-instance-types --instance-types m7g.large --query 'InstanceTypes[].[InstanceType,VCpuInfo.DefaultVCpus,MemoryInfo.SizeInMiB]'vCPU and memory of a type
aws ec2 describe-instances --filters Name=instance-state-name,Values=running --query 'Reservations[].Instances[].[InstanceId,InstanceType,PrivateIpAddress]' --output tableRunning instances
aws ssm start-session --target i-0123456789abcdef0Shell via Session Manager (no SSH, no open ports)

Auto Scaling

aws autoscaling describe-auto-scaling-groups --query 'AutoScalingGroups[].[AutoScalingGroupName,MinSize,DesiredCapacity,MaxSize]'Group sizes
aws autoscaling start-instance-refresh --auto-scaling-group-name <asg>Roll instances onto a new launch template

04 · Load balancing & DNS

Load balancers

aws elbv2 describe-load-balancers --query 'LoadBalancers[].[LoadBalancerName,Type,DNSName]' --output tableLBs, types and DNS names
aws elbv2 describe-target-health --target-group-arn <arn>Which targets are healthy, and why not
aws acm list-certificatesTLS certificates managed by ACM

Route 53

aws route53 list-hosted-zonesPublic and private zones
aws route53 list-resource-record-sets --hosted-zone-id <id>Records in a zone
dig +short shop.example.comWhat resolvers actually return

05 · Storage

S3

aws s3 ls s3://bucket/prefix/List objects
aws s3 sync ./site s3://bucket/site --deleteSync a folder
aws s3api get-bucket-versioning --bucket bucketIs versioning on?
aws s3api get-public-access-block --bucket bucketBlock Public Access settings

EBS

aws ec2 describe-volumes --query 'Volumes[].[VolumeId,VolumeType,Size,Iops,Throughput,AvailabilityZone,State]' --output tableVolumes, type, performance, AZ
aws ec2 modify-volume --volume-id <id> --volume-type gp3 --iops 6000Change type/performance online
aws ec2 create-snapshot --volume-id <id> --description nightlySnapshot a volume

06 · Security services

KMS & secrets

aws kms list-aliasesKeys by friendly alias
aws kms describe-key --key-id alias/app-dataKey metadata, state, rotation
aws secretsmanager get-secret-value --secret-id prod/shop/db --query SecretString --output textRead a secret (needs permission)
aws ssm get-parameter --name /prod/shop/db-host --with-decryptionRead a parameter

Audit & detection

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteBucketWho deleted a bucket (last 90 days of management events)
aws guardduty list-detectorsIs GuardDuty enabled in this region?
aws configservice describe-compliance-by-config-ruleConfig rule compliance

07 · Multi-account & cost

Organizations

aws organizations list-accounts --query 'Accounts[].[Name,Id,Status]' --output tableAll accounts (from the management account)
aws organizations list-policies --filter SERVICE_CONTROL_POLICYSCPs

Cost

aws ce get-cost-and-usage --time-period Start=2026-09-01,End=2026-10-01 --granularity MONTHLY --metrics UnblendedCost --group-by Type=DIMENSION,Key=SERVICECost by service for a month
aws budgets describe-budgets --account-id <id>Budgets and thresholds
Tags: Owner, Environment, CostCenter, ApplicationMinimum tag set for cost allocation