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.tffile and set thesubscription_idandtenant_idvalues to match your Azure environment. -
Configure Parameters: Update the
example.auto.tfvarsfile with all required parameters specific to your environment. -
Initialize Terraform: Run the command
terraform initto initialize the working directory. -
Apply Configuration: Execute
terraform applyto deploy the infrastructure.
For more details and best practices, please refer to the blog article.