From CLI setup to CloudFormation and Terraform infrastructure
Build real AWS skills by running actual CLI commands. Learn IAM access control, S3 storage, EC2 instances, Lambda serverless functions, and infrastructure as code with CloudFormation and Terraform β all from your terminal.
Before You Start
5 modules β’ 1 open
Create an AWS account, secure root with MFA, set up an IAM admin user and AWS CLI v2, verify credentials, and add a budget alert β all following AWS best practices.
Create an IAM user with programmatic access, build a group with a managed policy, add the user to the group, verify permissions with policy simulation, and clean up β all from the CLI.
Write a custom IAM policy in JSON, create an EC2 service role with a trust policy, attach the policy to a user and the role, and simulate permissions β all from the CLI.
Create an S3 bucket, upload and download objects using the AWS CLI, generate a presigned URL for temporary access, and clean up β all from the terminal.
Write an S3 bucket policy for a specific IAM principal, inspect Block Public Access settings, apply and verify the policy, and simulate permissions β all from the CLI.
Enable S3 versioning, upload multiple object versions, restore a previous version by ID, and configure a lifecycle rule to expire non-current versions β all from the CLI.
Find the Amazon Linux 2023 AMI for your region, launch a t2.micro instance with run-instances, wait for running state, and terminate β all from the CLI.
Create an EC2 security group, add IP-scoped SSH and open HTTP rules, launch a t2.micro, modify rules on a live instance, and clean up β all from the CLI.
Create an EC2 key pair, chmod 400 the .pem file, launch a t2.micro with an SSH-only security group, SSH in, query IMDSv2 metadata, and clean up β all from the CLI.
Create an IAM execution role, write a minimal Python handler, zip and deploy it with aws lambda create-function, invoke synchronously, and clean up β all from the CLI.
Capture Lambda logs inline with --log-type Tail, decode the base64 LogResult, read the REPORT billing line, and invoke the function asynchronously β all from the CLI.
Update Lambda environment variables without redeploying code, deploy code changes with update-function-code, and publish an immutable function version β all from the CLI.
Deploy an IAM role, S3 bucket, and Lambda function as a CloudFormation stack, preview updates safely with a change set, and clean up with delete-stack β from the CLI.
Use Terraform to provision an IAM role, S3 bucket, Lambda function, and CloudWatch log group on AWS, inspect the plan, apply the configuration, verify outputs, update safely, and destroy everything cleanly.