Closed erikpaasonen closed 5 months ago
confirmed that this issue still occurs with prismacloud
provider v1.5.0. edited the OP to reflect.
@erikpaasonen Thanks for opening the issue, a fix has been released with terraform version = "1.5.5" Closing the issue Thanks
Describe the bug
Certain
prismacloud_cloud_account_v2
resources now throwing this error after previously succeeding:(The absence of any actual HTML code seems to indicate the body of the 404 was empty.)
Expected behavior
Terraform should plan and apply without error. If the cloud account has been deleted outside of Terraform, then Terraform should recognize that the resource needs to be recreated and recreate it.
Current behavior
The Terraform plan errors out with the error message given above.
Possible solution
Steps to reproduce
prismacloud_cloud_account_v2
resourceterraform apply
terraform plan
Context
Terraform is designed as a declarative tool, meaning every time Terraform runs (successfully) it should result in the state of the managed environment matching what is defined in code. In this case, changes made outside of Terraform (i.e. deleting the cloud account via the Console) are not being detected as the resource having been deleted, but instead an error is being reported back through to the user. Seems as if this error should be caught and cause the
prismacloud_cloud_account_v2
resource to consider itself deleted from the Prisma Cloud tenancy, and re-create (i.e. "taint").Tangentially related (in the sense they describe a similar "we'll pass-thru an HTTP status code and give you the HTML content which is empty" error pattern):
200
223
Your Environment
prismacloud
provider v1.5.0 (originally confirmed on 1.3.7), Terraform v1.6.3