Terraform template for modules and submodules. Includes pre-commit hooks that lint the terraform code and generate module's documentation as part of README file. Contains examples of terraform CI/CD pipelines for GitHub Actions and Azure Pipelines.
- Create and configure Azure Storage Account for Terraform state
- Create
azure.sas.conf
file with the following content:storage_account_name = "storage_account_name" container_name = "container_name" key = "terraform.tfstate" sas_token = "sas_token"
terraform init -backend-config="azure.sas.conf" -reconfigure -upgrade
- Bitbucket SSH:
git::[email protected]:kolosovpetro/terraform.git//modules/storage
- Github SSH:
git::[email protected]:kolosovpetro/terraform.git//modules/storage
- Github HTTP:
github.com/kolosovpetro/AzureLinuxVMTerraform.git//modules/ubuntu-vm-key-auth-no-pip?ref=master
- Install python3 via Windows Store
pip install --upgrade pip
pip install pre-commit
- Update PATH variable
pre-commit install
choco install terraform-docs
choco install tflint