Azure / aztfexport

A tool to bring existing Azure resources under Terraform's management
https://azure.github.io/aztfexport/
Mozilla Public License 2.0
1.57k stars 179 forks source link

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

Open rrmistry opened 1 year ago

rrmistry commented 1 year ago

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 🙏

magodo commented 1 year ago

@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 commented 1 month ago

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