imperva / terraform-provider-incapsula

This package is a plugin for Terraform, and is designed to be used to auto-provision sites in Incapsula via Incapsula’s API from the terraform cli/yaml configurations.
Mozilla Public License 2.0
44 stars 72 forks source link

Cannot set false Naked_domain_san and wildcard_san #153

Closed rsecuritas closed 2 years ago

rsecuritas commented 2 years ago

Hi,

I am trying to update the properties Naked_domain and Wildcard_san with the provider but after apply the changes correctly the changes still appearing. I have tried disabling site, and removing certificate before apply. The only thing that worked is to use the api directly.

Here the logs:

`PS C:\GIT\Imperva.Infraestructure> terraform apply: Refreshing state... [id=xxx]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place

Terraform will perform the following actions:

module.imperva_sites.incapsula_site.this["xxxx"] will be updated in-place ~ resource "incapsula_site" "this" { id = "xxx" ~ naked_domain_san = true -> false ~ wildcard_san = true -> false

(37 unchanged attributes hidden)

}

Plan: 0 to add, 1 to change, 0 to destroy.

Do you want to perform these actions in workspace "dev"? Terraform will perform the actions described above. Only 'yes' will be accepted to approve.

Enter a value: yes

module.imperva_sites.incapsula_site.this["xxx"]: Modifying... [id=xx] module.imperva_sites.incapsula_site.this["xxx"]: Modifications complete after 7s [id=xx]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.


PS C:\GIT\Imperva.Infraestructure> terraform apply: Refreshing state... [id=xxx]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place

Terraform will perform the following actions:

module.imperva_sites.incapsula_site.this["xxxx"] will be updated in-place ~ resource "incapsula_site" "this" { id = "xxx" ~ naked_domain_san = true -> false ~ wildcard_san = true -> false

(37 unchanged attributes hidden)

}

Plan: 0 to add, 1 to change, 0 to destroy.`

BrachaY commented 2 years ago

Hi @rsecuritas This is indeed a bug. We will handle it soon, and I will update you when the fix is released.

BrachaY commented 2 years ago

@rsecuritas The fix was released in version 3.5.1