Terraform setup to validate the private connection between an Azure VM and a Blob Storage account. It provisions a virtual network, subnet, and storage account with a service endpoint, disables public access, and tests connectivity using CURL and nslookup.
- 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:
git::[email protected]:kolosovpetro/terraform.git//modules/storage
- Github:
git::[email protected]:kolosovpetro/terraform.git//modules/storage
- 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
- https://github.com/antonbabenko/pre-commit-terraform
- https://github.com/kolosovpetro/AzureTerraformBackend
- https://github.com/terraform-docs/terraform-docs
- https://terraform-docs.io/user-guide/installation/
- https://pre-commit.com/
storage_account_name = "storage_account_name"
container_name = "container_name"
key = "terraform.tfstate"
sas_token = "sas_token"