aztfexport icon indicating copy to clipboard operation
aztfexport copied to clipboard

[Feature] Create `azurerm_key_vault_secret` with value stored as `sensitive` variable in `terraform.tfvars` file

Open rrmistry opened this issue 3 years ago • 2 comments

At this time the secrets from Azure Key Vault are imported into the main.tf file in plain text.

It would be good to create the Terraform resource for azurerm_key_vault_secret with a corresponding sensitive variable that has the value appended to a variables file (e.g. terraform.tfvars).

When importing massive amounts of secrets, this would make it easy to add the produced Terraform code to a Git repo with appropriate .gitignore for *.tfvars files.


A great tool in any case. Thanks team! Much appreciated 🙏

rrmistry avatar Dec 11 '22 21:12 rrmistry

@rrmistry Thank you for raising this! This is a fair feature request, while to be honest, we are not going to support property level features, as that will become hard to maintain real fastly. Sorry for this.

magodo avatar Dec 12 '22 05:12 magodo

Relating to https://github.com/magodo/tfadd/pull/8

magodo avatar Aug 09 '24 09:08 magodo