terraform-provider-incapsula icon indicating copy to clipboard operation
terraform-provider-incapsula copied to clipboard

User Caching Issue Completely Blocks Ability to `terraform apply`

Open ren3gadem4rm0t opened this issue 8 months ago • 0 comments

Confirmation

  • [X] My issue isn't already found on the issue tracker.
  • [x] I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Imperva provider version

Terraform v1.5.7 on darwin_arm64

  • provider registry.terraform.io/imperva/incapsula v3.25.2

Affected resource(s)

incapsula_account_user

Terraform configuration files

Omitted

Debug output

n/a

Panic output

n/a

Expected output

Resources created/updated.

Actual output

Error: Error status code 409 from Incapsula service when adding User [email protected]: {"errors": [{"status":409, "id": "omitted", "source" : {"pointer":"/v3/idm-users"}, "title" : "Resource already exist [USER]", "detail": "User [email protected] already exist"}]}

with module. user_accounts. incapsula_account_user.parent._account_user["[email protected]_0000000"],
on modules/user_accounts/main.tf line 1, in resource "incapsula_account_user" "parent_account_user":
1: resource "incapsula_account_user" "parent_account_user" {

Releasing state lock. This may take a few moments...

then, removing the user from the state file via terraform state rm ...:

╷
│ Error: Error status code 404 from Incapsula service when getting User [email protected]: {"errors":[{"status":404,"id":"omitted","source":{"pointer":"/v3/idm-users/[email protected]"},"title":"The requested item was not found","detail":"User with email [email protected] does not exist"}]}
│ 
│ 
╵

Steps to reproduce

  1. terraform plan
  2. terraform apply
  3. terraform state rm [resource here]
  4. terraform apply

Additional factoids

This issue exists outside of the terraform provider, within the Imperva API. However, while present it completely blocks the ability to manage any aspects of Imperva via terraform.

We've been completely blocked for 6 days.

References

No response

ren3gadem4rm0t avatar Jun 11 '24 14:06 ren3gadem4rm0t