Skip to content

Instantly share code, notes, and snippets.

@stvdilln
Created January 31, 2020 15:13
Show Gist options
  • Save stvdilln/0fe4ab8be7613f974b2635b3f9c5929b to your computer and use it in GitHub Desktop.
Save stvdilln/0fe4ab8be7613f974b2635b3f9c5929b to your computer and use it in GitHub Desktop.
Installing a Self Signed Certificate into Vault using Terraform
# Take the Root CA certificate that we have created and store it in
# the mount point pki-root-ca. The ca_pem_bundle in this case is
# the Certificate we generated and the key for it.
resource "vault_pki_secret_backend_config_ca" "ca_config" {
depends_on = [ vault_mount.root, tls_private_key.ca_key]
backend = vault_mount.root.path
pem_bundle = local_file.ca_pem_bundle.sensitive_content
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment