This repository provides an example for securely deploying Terraform on Azure using workload identity federation. For a detailed explanation, refer to the accompanying blog article: Secure Terraform Deployments on Azure with Workload Identity Federation.
Follow these steps to get started:
-
Set Subscription and Tenant IDs: Open the
providers.tf
file and set thesubscription_id
andtenant_id
values to match your Azure environment. -
Configure Parameters: Update the
example.auto.tfvars
file with all required parameters specific to your environment. -
Initialize Terraform: Run the command
terraform init
to initialize the working directory. -
Apply Configuration: Execute
terraform apply
to deploy the infrastructure.
For more details and best practices, please refer to the blog article.