Skip to content

SoftcatMS/terraform-azure-credentials-kv

Repository files navigation

terraform-azure-credentials-kv

Allows creation of a list of secrets in an existing Azure Key Vault

It supports creating:

  • Automatically creates Softcat SSH Key
  • Secrets

Usage Examples

Review the examples folder: examples

Deployment

Perform the following commands on the root folder:

  • terraform init to get the plugins
  • terraform plan to see the infrastructure plan
  • terraform apply to apply the infrastructure build
  • terraform destroy to destroy the built infrastructure

< use terraform-docs to create Inputs and Outpus documentation terraform-docs

terraform-docs markdown .

Requirements

Installed Software

The following dependencies must be installed on the development system:

Azure

Providers

Name Version
azurerm n/a
random n/a
tls n/a

Modules

No modules.

Resources

Name Type
azurerm_key_vault_secret.add_password resource
azurerm_key_vault_secret.add_softcat_private_key resource
azurerm_key_vault_secret.add_softcat_public_key resource
random_password.gen_password resource
tls_private_key.softcat_key resource
azurerm_key_vault.softcat data source

Inputs

Name Description Type Default Required
bastion_softcat_ssh_key_name Softcat SSH key for Bastion Name string "Softcat-Bastion" no
create_bastion_softcat_ssh_key Create Softcat SSH key pair for Bastion bool false no
key_vault_name Key Vault Name. string n/a yes
passwords List resources that require a random password.
list(object({
name = string,
}))
[] no
resource_group_name Resource Group Name for Key Vault string n/a yes
tags A map of tags to add to all resources map(string) {} no

Outputs

Name Description
passwords A mapping of password names and URIs.
softcat_public_ssh_key Public key used to connect to VMs via Bastion.

Contributing

Refer to the contribution guidelines for information on contributing to this module.

About

Terraform Module for Azure to create passwords in a password specific Key Vault

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •