diff --git a/resources_hcp_vault_secrets.tf b/resources_hcp_vault_secrets.tf index 3dc04c4..04bff09 100644 --- a/resources_hcp_vault_secrets.tf +++ b/resources_hcp_vault_secrets.tf @@ -1,14 +1,15 @@ # The following code block is used to create the Hashicorp Vault Secret app where team token will be stored. resource "hcp_vault_secrets_app" "this" { - app_name = local.hcp_vault_secrets_app_name + app_name = local.hcp_vault_secrets_app_name + description = "" } # The following code blode is used to create secret in Hashicorp Vault. resource "hcp_vault_secrets_secret" "this" { for_each = nonsensitive({ for team in local.tfc_teams : team.name => team if try(team.token, false) == true }) - app_name = local.hcp_vault_secrets_app_name + app_name = hcp_vault_secrets_app.this.app_name secret_name = lower(replace(each.value.name, "/\\W|_|\\s/", "_")) secret_value = module.tfe_teams[each.value.name].token } \ No newline at end of file