From 6044ef4f4af053dfc898fac209d0ba65b8b3947f Mon Sep 17 00:00:00 2001 From: Damian Debkowski Date: Wed, 12 Oct 2022 12:00:12 -0700 Subject: [PATCH] chore: generate docs --- docs/resources/credential_library_vault.md | 28 +++++++++++++++++++ .../resource.tf | 27 ++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/docs/resources/credential_library_vault.md b/docs/resources/credential_library_vault.md index 2e4ed122..f3ef6152 100644 --- a/docs/resources/credential_library_vault.md +++ b/docs/resources/credential_library_vault.md @@ -56,6 +56,33 @@ resource "boundary_credential_library_vault" "bar" { } EOT } + +resource "boundary_credential_library_vault" "baz" { + name = "baz" + description = "vault username password credential with mapping overrides" + credential_store_id = boundary_credential_store_vault.foo.id + path = "my/secret/baz" # change to Vault backend path + http_method = "GET" + credential_type = "username_password" + credential_mapping_overrides = { + password_attribute = "alternative_password_label" + username_attribute = "alternative_username_label" + } +} + +resource "boundary_credential_library_vault" "quz" { + name = "quz" + description = "vault ssh private key credential with mapping overrides" + credential_store_id = boundary_credential_store_vault.foo.id + path = "my/secret/quz" # change to Vault backend path + http_method = "GET" + credential_type = "ssh_private_key" + credential_mapping_overrides = { + private_key_attribute = "alternative_key_label" + private_key_passphrase_attribute = "alternative_passphrase_label" + username_attribute = "alternative_username_label" + } +} ``` @@ -68,6 +95,7 @@ EOT ### Optional +- `credential_mapping_overrides` (Map of String) The credential mapping override. - `credential_type` (String) The type of credential the library generates. - `description` (String) The Vault credential library description. - `http_method` (String) The HTTP method the library uses when requesting credentials from Vault. Defaults to 'GET' diff --git a/examples/resources/boundary_credential_library_vault/resource.tf b/examples/resources/boundary_credential_library_vault/resource.tf index 5a344aac..798bc188 100644 --- a/examples/resources/boundary_credential_library_vault/resource.tf +++ b/examples/resources/boundary_credential_library_vault/resource.tf @@ -41,3 +41,30 @@ resource "boundary_credential_library_vault" "bar" { } EOT } + +resource "boundary_credential_library_vault" "baz" { + name = "baz" + description = "vault username password credential with mapping overrides" + credential_store_id = boundary_credential_store_vault.foo.id + path = "my/secret/baz" # change to Vault backend path + http_method = "GET" + credential_type = "username_password" + credential_mapping_overrides = { + password_attribute = "alternative_password_label" + username_attribute = "alternative_username_label" + } +} + +resource "boundary_credential_library_vault" "quz" { + name = "quz" + description = "vault ssh private key credential with mapping overrides" + credential_store_id = boundary_credential_store_vault.foo.id + path = "my/secret/quz" # change to Vault backend path + http_method = "GET" + credential_type = "ssh_private_key" + credential_mapping_overrides = { + private_key_attribute = "alternative_key_label" + private_key_passphrase_attribute = "alternative_passphrase_label" + username_attribute = "alternative_username_label" + } +}