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

TF Plan fails to handle a Lookup Table that was deleted out-of-band #622

Open
janek-sumo opened this issue Feb 19, 2024 · 1 comment
Open

Comments

@janek-sumo
Copy link

Steps to Reproduce

  1. Create a Lookup Table using the Terraform sumologic_lookup_table resource.
  2. Delete the Lookup Table in the Sumo Logic UI
  3. Run a Terraform plan for that resource

Observed

Error: {"id":"8<obfuscated>0","errors":[{"code":"lookup:invalid_request","message":"Invalid lookup table request.","detail":"Either the path does not exist or you don't have the right permissions"}]}

Expected

In declarative infrastructure if the resource is defined, but does not exist, then it should be created. I expected Terraform to recreate the missing Lookup Table after it was deleted manually.

Workaround

I had to perform manual Terraform surgery and remove the resource from the Terraform State before a subsequent Plan succeeded.

@camilodiazsal
Copy link

We've experienced this exact issue. Workaround works, but the lookup table should just be created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants