Quick Start¶
Get up and running with this Terraform template in just a few steps.
Prerequisites¶
- Terraform >= 1.0 (recommended: 1.10.5)
- Pre-commit
- TFLint
- Checkov
- AWS CLI configured with appropriate credentials
- Docker (optional, for Dev Container)
Step 1: Create Your Repository¶
Use this template to create a new repository:
- Click "Use this template" on the GitHub repository page
- Choose a name for your new repository
- Clone your new repository locally
Step 2: Install Pre-commit Hooks¶
This ensures all quality checks run automatically before each commit.
Step 3: Initialize Terraform¶
Step 4: Configure Your Environment¶
Edit the environment-specific variable files:
# Development
environments/dev/dev.tfvars
# QA/Staging
environments/qa/qa.tfvars
# Production
environments/prod/prod.tfvars
Step 5: Plan and Apply¶
# Plan for development environment
terraform plan -var-file=environments/dev/dev.tfvars
# Apply when ready
terraform apply -var-file=environments/dev/dev.tfvars
Step 6: Set Up CI/CD¶
Azure Pipelines (Terraform Deployment)¶
Configure the Azure DevOps pipeline for Terraform operations:
- Install the Terraform extension from the Azure DevOps Marketplace
- Create an AWS service connection named
AWSServiceConnectionin Project Settings > Service connections - Create a new pipeline pointing to
.azure-pipelines/azure-pipelines.yaml
GitHub Actions (Validation & Release)¶
Configure the following GitHub secrets for PR checks and releases:
| Secret | Description |
|---|---|
INFRACOST_API_KEY | (Optional) For cost estimation on PRs |
Environment Approvals
Configure approval gates in Azure DevOps Environments for production deployment safety.
Next Steps¶
- Read the Template Usage Guide for detailed customization
- Review CI/CD Workflows to understand the automation
- Check Security Practices for compliance requirements