Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Module for easy fetching of secrets from Azure Key Vaults.

Notifications You must be signed in to change notification settings

bring/terraform-azurerm-key-vault-secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-azurerm-key-vault-secrets

Module for easy fetching of secrets from Azure Key Vaults.

Example Usage

locals {
  my_secret_key1 = "my-secret1"
  my_secret_key2 = "my-secret2"
}

module "my_app_key_vault" {
  source         = "github.com/bring/terraform-azurerm-key-vault-secrets"
  name           = "my-app-kv"
  resource_group = "my_resource_group_name"
  secret_names   = [local.my_secret_key1, local.my_secret_key2]
}

resource "example_azurerm_resource" "my_example_resource" {
  name       = "resource-needing-secrets"
  password   = module.my_app_key_vault.secrets_values[local.my_secret_key1]
  access_key = module.my_app_key_vault.secrets_values[local.my_secret_key2]
}

About

Module for easy fetching of secrets from Azure Key Vaults.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages