Hey, I’m trying to use the vault-credential-library-parameter-templating feature to pass username to vault like described here:
resource "boundary_credential_library_vault" "test_aurora_ro" {
name = "test-aurora-ro"
description = "test-aurora-ro"
credential_store_id = boundary_credential_store_vault.vault_tech.id
path = "database/creds/test-aurora-ro"
http_method = "POST"
http_request_body = <<EOT
{
"UserName": "{{.User.Name}}",
"LoginName": "{{.Account.LoginName}}"
}
EOT
}
But gui client returns this error:
targets.(Service).AuthorizeSession: vault.(Repository).Issue: vault.(client).post: vault: https://vault-app.tech.central.euce1.aws.xxx.xxx: external system issue: error #3014: Error making API request. URL: PUT https://vault-app.tech.central.euce1.aws.xxx.xxx/v1/database/creds/test-aurora-ro Code: 405. Errors: * 1 error occurred: * unsupported operation
I don’t get it why it ties to do PUT, when configured http_method is POST
Please give me right direction so solve the issue