You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TF provider should fail if a user or service accounts are created as Admin and explicit Namespace_Access blocks as this is an invalid state for a Global Admin user or Service_Account.
Today, TF will create the user or service account with "implicit"/"inherited" permissions to all Namespaces AND fail the apply with the following error
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to temporalcloud_service_account.global_admin, provider "provider["registry.terraform.io/temporalio/temporalcloud"]" produced an unexpected new value: .namespace_accesses: was
│ cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"namespace_id":cty.StringVal("terraformsa.ksfop"), "permission":cty.StringVal("Write")})}), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
The desired behavior is to fail the TF create request without creating the user or service account.
Reproduction
To reproduce:
Create or Import an Existing Namespace into a TF terraform import temporalcloud_namespace.namespace <account_id>.<namespace name>
Using the following block, create a Service Account with Access = Admin and Namespace_Account = the created/imported, Write using the following code block
What are you really trying to do?
The TF provider should fail if a user or service accounts are created as Admin and explicit Namespace_Access blocks as this is an invalid state for a Global Admin user or Service_Account.
Today, TF will create the user or service account with "implicit"/"inherited" permissions to all Namespaces AND fail the apply with the following error
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to temporalcloud_service_account.global_admin, provider "provider["registry.terraform.io/temporalio/temporalcloud"]" produced an unexpected new value: .namespace_accesses: was
│ cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"namespace_id":cty.StringVal("terraformsa.ksfop"), "permission":cty.StringVal("Write")})}), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
The desired behavior is to fail the TF create request without creating the user or service account.
Reproduction
To reproduce:
Create or Import an Existing Namespace into a TF
terraform import temporalcloud_namespace.namespace <account_id>.<namespace name>
Using the following block, create a Service Account with Access = Admin and Namespace_Account = the created/imported, Write using the following code block
Environment/Versions
Reproduced on v0.0.15
The text was updated successfully, but these errors were encountered: