Session M4-02: Infrastructure as code with Copilot¶
Module: DevOps & Infrastructure with Copilot Difficulty: Advanced Prerequisites: Sessions M1-01 to M1-03, M2-01 to M2-02, M4-01 Duration: 2 hours 30 minutes (1 hour trainer content + 1 hour 30 minutes lab)
Overview¶
You will use Terraform to build and review one modular infrastructure project. Connect the network, compute, and database modules, then validate each stage. Finally, repair a supplied configuration that fails the local security gate.
Bicep is a trainer comparison and optional extension. It is not part of the required learner deliverable.
Learning outcomes¶
- Generate Terraform modules from fixed architecture constraints.
- Connect module inputs and outputs without copying values between layers.
- Run formatting, initialization, validation, and a local security gate in order.
- Explain what local validation checks and what still needs a reviewed plan.
- Review the equivalent Bicep structure without requiring a second implementation.
Required access¶
You need GitHub Copilot, Terraform 1.5 or later, and network access to the approved Terraform provider source. No cloud account or credentials are required. Stop if the approved provider source is unavailable.
| Resource | Location |
|---|---|
| Trainer guide | trainer-content/README.md |
| Slides | slides.md |
| Lab | lab/README.md |
| Terraform starter | lab/starter/terraform/ |
| Terraform solution | lab/solution/terraform/ |
| Optional Bicep extension | lab/starter/bicep/ |