Skip to content

Terraform template for modules and sub-modules. 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.

License

kolosovpetro/terraform-template

Repository files navigation

Terraform template

Terraform template for modules and sub-modules. 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.

Pre-commit configuration

  • Install python3 via windows store
  • pip install --upgrade pip
  • pip install pre-commit
  • Update PATH variable
  • pre-commit install

Install terraform docs

  • choco install terraform-docs

Install tflint

  • choco install tflint

Documentation

Storage account configuration file

storage_account_name = "storage_account_name"
container_name       = "container_name"
key                  = "terraform.tfstate"
sas_token            = "sas_token"

Deploy storage account for terraform state

Module documentation

Requirements

Name Version
azurerm =3.71.0

Providers

Name Version
azurerm 3.71.0

Modules

Name Source Version
resource_group ./modules/example_submodule n/a

Resources

Name Type
azurerm_resource_group.public resource
azurerm_client_config.current data source

Inputs

Name Description Type Default Required
prefix Prefix for all resources string n/a yes
resource_group_location Resource group location string n/a yes
resource_group_name Resource group name string n/a yes

Outputs

No outputs.

About

Terraform template for modules and sub-modules. 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.

Topics

Resources

License

Stars

Watchers

Forks