terraform-provider-incapsula
terraform-provider-incapsula copied to clipboard
incapsula_site.site_ip change is ignored
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 -v Terraform v1.6.6-dev on linux_amd64
- provider registry.terraform.io/devops-rob/terracurl v1.0.1
- provider registry.terraform.io/hashicorp/azuread v2.47.0
- provider registry.terraform.io/hashicorp/azurerm v3.86.0
- provider registry.terraform.io/hashicorp/time v0.10.0
- provider registry.terraform.io/imperva/incapsula v3.21.1
Affected resource(s)
When I change the site_ip on an incapsula_site, the terraform plan does not detect any change to the resource.
If I go to the web console and change the website IP address/CNAME field without changing terraform, the terraform plan does not detect any change to the resource. In the example below, I can change 1.2.3.4 to 4.3.2.1 and terraform says there are no changes
Terraform configuration files
resource "incapsula_site" "site_portal" {
domain = "my.site.com"
site_ip = "1.2.3.4"
wildcard_san = true
lifecycle {
prevent_destroy = true
}
}
Debug output
There is company specific information in the debug output and I do not have an extra website license to be able to create one for testing purposes. This is replicable on multiple sites, though.****
Panic output
No response
Expected output
I expected the plan to say the IP address woudl be changed
Actual output
No changes. Your infrastructure matches the configuration.
Steps to reproduce
Yes, changing either terrraform or the website Server IP so they do not match should result in the terraform plan indicating an update to the incapsula_site
Additional factoids
No response
References
No response