Recall first: read each stage's one-line summary and try to remember its commands. Then open the stage to check yourself.
17 stages31 commands
aws sts get-caller-identityConfirm the active AWS account and caller identity
aws ec2 describe-regions --query "Regions[].RegionName" --output textList AWS regions available to the account
Watch for AWS CLI credentials can point at a different account or region than the console tab.
Open the lesson: Cloud basics: what you're actually renting →aws iam get-account-summary --query 'SummaryMap.{Users:Users,MFADevices:MFADevices,AccountMFAEnabled:AccountMFAEnabled}'Check account-level IAM user and MFA summary counts
aws iam simulate-principal-policy --policy-source-arn arn:aws:iam::111122223333:user/demo-dev \Start a policy simulation for a principal's permissions
Watch for A policy simulator result does not prove that every runtime resource condition is satisfied.
Open the lesson: IAM: who can do what →aws ec2 wait instance-status-ok --instance-ids $IDWait until the instance passes EC2 status checks
Watch for Opening SSH to 0.0.0.0/0 exposes the port broadly; restrict it to the required source.
aws ec2 describe-vpcs --filters Name=tag:Name,Values=academy-vpc --query 'length(Vpcs)'Confirm whether the tagged lesson VPC exists
aws ec2 describe-route-tables --filters Name=vpc-id,Values=$V \Inspect route tables associated with the selected VPC
Watch for A private subnet needs an intentional egress path, such as a NAT gateway, for outbound internet access.
Open the lesson: VPC: your own private network →aws autoscaling describe-scaling-activities --auto-scaling-group-name academy-asg --max-items 2 --query 'Activities[].Description'Review recent Auto Scaling group activity and replacement decisions
Watch for A target can exist in a target group and still be unhealthy, so inspect target health.
Open the lesson: Scaling and load balancing →aws s3api list-objects-v2 --bucket $BUCKET --query 'Contents[].{Key:Key,Size:Size,StorageClass:StorageClass}' --output tableList object keys, sizes and storage classes in a bucket
aws s3api get-bucket-location --bucket $BUCKET --query LocationConstraint --output textCheck a bucket's region
Watch for A presigned URL grants temporary access; it does not make a private object public permanently.
Open the lesson: S3: storage for everything →aws ec2 describe-volumes --region "$AWS_REGION" --volume-ids "$VOLUME_ID" \Inspect an EBS volume's type, size, encryption and attachment state
aws dlm get-lifecycle-policies --state ENABLED --region ap-south-1 \List enabled Data Lifecycle Manager snapshot policies
Watch for A snapshot is a recovery point, not proof that a restore procedure works.
Open the lesson: EBS, EFS and instance store →aws route53 list-resource-record-sets --hosted-zone-id $Z --query 'ResourceRecordSets[].[Name,Type,ResourceRecords[0].Value]' --output textInspect the records in a hosted zone
Watch for A private hosted zone resolves only in associated VPCs; it does not publish public DNS.
Open the lesson: Route 53: DNS for your apps →aws cloudfront get-distribution-config --id "$DISTRIBUTION_ID" \Inspect the current distribution configuration before editing it
aws cloudfront create-invalidation --distribution-id E1ABCDEF --paths "/index.html"Request that CloudFront remove a cached object
Watch for An invalidation does not fix a wrong origin or cache policy; correct the configuration first.
Open the lesson: CloudFront: a fast edge in front of your app →aws dynamodb query --region "$AWS_REGION" --table-name "$TABLE" --index-name GSI1 \Query the table through its global secondary index
aws dynamodb scan --region "$AWS_REGION" --table-name "$TABLE" --query 'Items' --output jsonRead all items in the lesson table with a scan
Watch for A scan reads across the table; it is not a substitute for a key-based query at scale.
Open the lesson: Managed databases: RDS, DynamoDB, ElastiCache →aws ecs describe-tasks --cluster "$CLUSTER" --tasks "$TASK" --query 'tasks[0].{Status:lastStatus,Definition:taskDefinition,Started:startedAt}' --output tableInspect a running ECS task's status and task definition
aws ecr create-repository --repository-name "$REPO" --image-scanning-configuration scanOnPush=trueCreate an ECR repository with scan-on-push enabled
http://api:80); a proxy in each task finds healthy tasks, balances and retries.Watch for Do not put application AWS permissions on the execution role; use the task role.
Open the lesson: Containers on AWS: ECR, ECS and EKS →aws lambda get-function-configuration --function-name "$FUNCTION" \Inspect the function's runtime configuration and state
aws lambda list-event-source-mappings --function-name "$FUNCTION" \Inspect event-source mappings configured for the function
Watch for A public function URL needs an explicit authorization decision and should not be exposed by accident.
Open the lesson: Lambda: code without servers →aws cloudwatch describe-alarms --profile $PROFILE --region $REGION --alarm-names $ALARM --query 'MetricAlarms[].StateValue'Check the current state of a named metric alarm
aws logs describe-log-groups --profile $PROFILE --region $REGION --log-group-name-prefix $LOG_GROUP --query 'logGroups[].logGroupName'Find log groups with the configured prefix
Watch for Missing data is not automatically the same as a healthy metric; choose alarm treatment deliberately.
Open the lesson: Monitoring and auditing: CloudWatch, CloudTrail and Config →aws sqs get-queue-url --queue-name academy-messaging-demoResolve the queue URL needed by later SQS commands
aws sqs get-queue-attributes --queue-url "$QUEUE_URL" --attribute-names RedrivePolicyInspect a queue's dead-letter redrive policy
Watch for Receiving a message does not delete it; delete it only after successful processing.
Open the lesson: Messaging: SES, SNS and SQS →aws kms list-aliases --query 'Aliases[?starts_with(AliasName, `alias/aws/`)].AliasName' --output textList AWS-managed KMS key aliases
aws ssm get-parameters --names "$PLAIN" "$SECURE" --with-decryption \Retrieve the lesson parameters, decrypting the SecureString value
Watch for Never place a retrieved secret value in source control, command output or a public log.
Open the lesson: Security and secrets: KMS, Secrets Manager and threat detection →aws cloudformation validate-template --template-body file://stack.yaml --query 'Parameters[].ParameterKey' --output textValidate a local CloudFormation template and list its parameters
aws cloudformation describe-stacks --stack-name academy-iac --query 'Stacks[0].[StackStatus,Outputs[0].OutputValue]' --output textInspect a stack's state and first output
Watch for A valid template can still fail at deployment because of permissions, quotas or service state.
Open the lesson: Automation and IaC: CloudFormation, CDK and Systems Manager →aws compute-optimizer get-enrollment-status --region ap-south-1 --query statusCheck whether the account is enrolled in Compute Optimizer
aws ce list-cost-allocation-tags --status Active --query 'CostAllocationTags[].TagKey'List active cost-allocation tag keys
Watch for Billing and Cost Explorer data can lag; a zero current total is not proof of zero future cost.
Open the lesson: Cost basics and the course project →