Problem
Using the following `vault` provider to define aliases for the namespaces provides an error:
provider "vault" {
alias = "admin/dev"
namespace = "admin/dev"
}
│ Error: error reading from Vault: Error making API request.
│
│ Namespace: admin/
│ URL: GET https://x.x.x.x
│ Code: 400. Errors:
│
│ * "/" is not allowed in namespace names
Cause
The variable "alias" doesn't allow the "/" character as a valid name.
Solutions:
The following Terraform code works successfully:
provider "vault" {
alias = "admin-dev"
namespace = "admin/dev"
}