Create a terraform.tfvars.json from variables stored in Azure Key Vault. Instead of failing, variables that do not have a value either defined in the variables.tf by default or in Azure Key Vault get a value of NOVALUEFOUND
- Create a vault and insert keys ike described here
- Authenticate to Azure with a principal that has access to your key vault or use az login
export AZURE_CLIENT_ID=<clientid>
export AZURE_CLIENT_SECRET=<clientsecret>
export AZURE_TENANT_ID=<clientsecret>
OR login with az ci as a user with access to your key vault
az login
- Add 4 keys named key1, key2, key3, key4 respectively
- Generate the tfvars json with the following command
python3 main.py -i variables.tf -o terraform.tfvars.json -k <mykeyvault>
👤 Tyler Walker
- GitHub: @brokorus
- LinkedIn: @tyler-walker-9b8605122
Give a ⭐️ if this project helped you!
This README was created with the markdown-readme-generator