Provision S3 and DynamoDB from a Single CloudFormation Stack
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
In this lab you will author a CloudFormation template that provisions both an S3 bucket and a DynamoDB table in one atomic deployment. You will deploy the stack against the local AWS emulator, inspect the resulting resources, add an output to the template and update the stack, then finally tear it all down with a single delete command. By the end you will understand how CloudFormation treats multiple resource types as a single unit of deployment and how stack updates work in practice.
What you’ll learn
- Write a CloudFormation template that declares an S3 bucket and a DynamoDB table as resources
- Deploy and update a CloudFormation stack using the AWS CLI
- Verify that CloudFormation created both resources and understand how to read stack outputs
How this lab works
- Start the lab: One click starts an emulated cloud on your computer, with the cloud’s own CLI ready: no account and no bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads the emulated cloud’s resources and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: An emulated cloud on your computer: no cloud account, no bill
- Cloud: AWS
- Services: cloudformation, s3, dynamodb
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A AWS sandbox created in the Local Cloud Playground
Topics: cloudformation, s3, dynamodb, iac, infrastructure-as-code, aws, local-cloud
Create a free account to start this lab.
Keep going
- Schedule a Recurring Cloud Scheduler Job That Publishes to Pub/Sub
- Push and Pull a Container Image with Azure Container Registry
- Publish Custom CloudWatch Metrics and Raise an Alarm
- Run a Container Task on ECS with a Task Definition and Inspect Its Logs
- Split-Horizon DNS with Route 53 Public and Private Hosted Zones
- Create Your First S3 Bucket and Upload an Object