Skip to content

brokorus/terraform-azure-keyvault-tfvar-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to terraform-azure-keyvault-tfvar-generator 👋

Version

Maintenance License:MIT

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

Usage

  • 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>

Author

👤 Tyler Walker

Show your support

Give a ⭐️ if this project helped you!


This README was created with the markdown-readme-generator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published