Compose Multi-Stack CloudFormation with Exports, Imports and Nested Stacks
Advanced · 45 minutes · 4 tasks, checked automatically · 100 points
In this advanced lab you will design and deploy a three-tier CloudFormation architecture entirely on the local AWS emulator. You will build a foundational **network stack** that exports VPC and subnet identifiers, a **storage stack** that imports those network exports and itself exports an S3 bucket name and a DynamoDB table ARN, and finally a **nested-stack root template** that pulls both child stacks together via the AWS::CloudFormation::Stack resource type. Along the way you will observe how cross-stack references enforce deployment ordering, how nested stacks surface outputs to their parent, and how to safely update and query the full dependency graph — all without touching a real AWS account.
What you’ll learn
- Author a standalone CloudFormation stack that publishes named cross-stack exports
- Author a second standalone stack that consumes those exports with Fn::ImportValue
- Package both child templates into S3 and wire them together inside a root nested-stack template
- Query stack outputs, exports and nested-stack resource trees using the AWS CLI
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 4 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, nested-stacks, cross-stack-references, exports, imports, infrastructure-as-code, s3, dynamodb, aws
Create a free account to start this lab.
Keep going
- GKE Workload Deployment: Deploy, Expose, Scale, and Roll Out
- Deploy, Scale, and Roll Out a New Image on AKS
- Deploy, Scale, and Roll Out Updates on OKE
- Deploy and Rolling-Update a Workload on EKS
- Incident Response: Contain a Leaked IAM Access Key
- Provision S3 and DynamoDB from a Single CloudFormation Stack