kv-bulk-write
kalenarndt/kv-bulk-write/vault
Terraform module to bulk write kv1/2 secrets to a pre-created path.
Terraform Vault KV Bulk Write This Terraform module creates multiple secrets in any given kv path in a Vault instance from a yaml file. Usage/Examples ``hcl locals { vault_config = yamldecode(file("${path.module}/vault_config.yaml")) vault_kv_secrets = local.vault_config.kv_secrets } module "homelab_kv" { source = "github.com/kalenarndt/terraform-vault-kv-bulk-write" vault_kv_secrets = local.vault_kv_secrets } ` The examples folder contains an example with a main.tf,providers.tf, settings.tf and vault_config.yaml file. Use this if you want to get up and running or follow the directions below. Ensure that you modify the vault_config.yaml file to match the path and secrets you would like to provision as this is what the module uses to deploy and configure the nested hosts. Place the vault_co
| Name | Type | Description | Default |
|---|---|---|---|
| vault_kv_secrets | map(any) | This is a map passed from a yaml file that is looped through to build secrets at | required |