Skip to content

[Feature Request] Support for API + mTLS auth on temporalcloud_namespace resource. #340

Description

@dahlke

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
╵

Metadata

Metadata

Assignees

No one assigned

    Labels

    API dependency requiredThis issue requires an API before TF work can beginenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions