Course Code:
cstmterf
Duration:
24 hours
Prerequisites:
-
Overview:
-
Course Outline:
Day 1: Introduction and Terraform Basics
- Welcome and Introduction
- Overview of training objectives
- Introduction of participants
- Course materials and setup
- Introduction to Terraform
- What is Infrastructure as Code (IaC)?
- Overview of Terraform
- Installation and setup
- Basic Terraform commands (init, plan, apply, destroy)
- Terraform Configuration
- Terraform configuration files (.tf)
- Providers and Resources
- Variables and Outputs
- Building Azure Resources with Terraform
- Creating basic AZ-104 resources using Terraform (e.g., Resource Groups, Virtual Networks, VMs)
- Managing state files
- Remote backends (Azure Storage, Terraform Cloud)
- Terraform State Management
- State locking and consistency
- Terraform workspaces for environment isolation
- Best practices for state management
- Hands-on Lab
- Participants create and manage Azure resources using Terraform
- Q&A session
Day 2: Advanced Terraform and Azure DevOps
- Advanced Terraform Features
- Terraform Modules
- Data sources
- Functions and conditionals
- Validations and custom validations
- Terraform in CI/CD with Azure DevOps
- Introduction to Azure DevOps Pipelines
- Setting up a pipeline to run Terraform scripts
- Using pipeline variables and secrets
- Running Terraform in Different Environments
- Environment configurations
- Promoting changes between environments
- Using Azure DevOps for environment management
- Code Security Practices
- Git protected branches
- Pull requests and code reviews
- Policy as code with Checkov
- Scanning Terraform configurations
- Custom Checkov policies
- Hands-on Lab
- Participants implement a CI/CD pipeline with Terraform
- Q&A session
Day 3: Policy as Code and Best Practices
- Advanced Policy as Code with Checkov
- Deep dive into Checkov features
- Automating security scans in CI/CD
- Terraform Best Practices
- Writing reusable and maintainable Terraform code
- Managing large projects with Terraform
- Collaboration and version control with Terraform
- Real-world Use Cases and Examples
- Case studies of Terraform in Azure
- Troubleshooting common issues
- Final Hands-on Lab and Project
- Participants work on a comprehensive project
- Presentation of projects and peer reviews
- Review and Q&A
- Recap of the course
- Q&A session
- Feedback and closing remarks