Azure / terraform-azurerm-avm-template

Template repo for Azure Verified Modules using Terraform
MIT License
40 stars 27 forks source link

Add custom tf var from vars and secrets capability #137

Closed jaredfholgate closed 1 month ago

jaredfholgate commented 1 month ago

Description

This PR adds the capability to send and vars or secrets that start with TF_VAR_ to the test run as env vars, so that they can be leveraged in the run.

A use case for this is testing with GitHub or Azure DevOps where we need to supply PAT and org name.

Here is an example test run leveraging this code: https://github.com/Azure/terraform-azurerm-avm-ptn-cicd-agents-and-runners/actions/runs/10199435253/job/28217447877

Type of Change

Checklist

matt-FFFFFF commented 1 month ago

LGTM