Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Terraform init command using powershell in Azure Pipelines
- powershell: |
terraform init -backend-config="access_key=$(storage_access_key)" -no-color
workingDirectory: $(build.sourcesdirectory)
displayName: 'terraform init'
# where $(storage_access_key) is a secret variable stored in the Azure pipeline
# variable or a Library variable group. The value of the variable is the storage
# access key to the storage account where the terraform remote state file is stored
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment