Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Failure creating a SA via Terraform for a namespace that was deleted & recreated #88

Open
yogeshtemporal opened this issue Apr 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yogeshtemporal
Copy link
Contributor

yogeshtemporal commented Apr 11, 2024

What are you really trying to do?

I am trying to create a new SA on a namespace that was deleted & recreated using Terraform

Describe the bug

The creation fails with the error below.

Error: Failed to find search attribute
│ 
│   with temporalcloud_namespace_search_attribute.custom_search_attribute,
│   on main.tf line 24, in resource "temporalcloud_namespace_search_attribute" "custom_search_attribute":
│   24: resource "temporalcloud_namespace_search_attribute" "custom_search_attribute" {
│ 
│ Failed to find search attribute `ProjectId` after update (this is a bug, please report this on GitHub!)
╵

Minimal Reproduction

  1. Create a namespace with some name say 'temporal-test'
  2. Add a SA with some name 'ProjectId' and type 'keyword'
  3. Delete the ns
  4. Recreate a ns with the same name 'temporal-test'
  5. Try creating an SA with the same name 'ProjectId' of type 'keyword' using Terraform and you will see the above error. However, the UI let you create same SA.
Screen.Recording.2024-04-11.at.11.25.57.am.mov

Environment/Versions

  • OS and processor: [M2 Max]
  • Temporal Web API Version: v2.21.0
  • Are you using Docker or Kubernetes or building Temporal from source? No

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants