Currently, you cannot create a namespace with both API key auth and mTLS auth enabled. As of the writing of this request, enabling this feature is gated behind a support ticket. If/when that restriction is lifted, it would be great to configure this through the Terraform provider.
Example of current behavior with the following block:
resource "temporalcloud_namespace" "terraform_test" {
name = "${var.prefix}-terraform-demo-${random_id.random_suffix.hex}"
regions = [var.region]
accepted_client_ca = base64encode(tls_self_signed_cert.terraform_test.cert_pem)
retention_days = 7
api_key_auth = true
}
Results in:
temporalcloud_namespace.terraform_test: Creating...
╷
│ Error: Failed to create namespace
│
│ with temporalcloud_namespace.terraform_test,
│ on main.tf line 49, in resource "temporalcloud_namespace" "terraform_test":
│ 49: resource "temporalcloud_namespace" "terraform_test" {
│
│ rpc error: code = InvalidArgument desc = cannot create namespace with provided auth method
╵
Currently, you cannot create a namespace with both API key auth and mTLS auth enabled. As of the writing of this request, enabling this feature is gated behind a support ticket. If/when that restriction is lifted, it would be great to configure this through the Terraform provider.
Example of current behavior with the following block:
Results in: