Closed SMBurrows closed 3 years ago
Hi @SMBurrows , Thanks for posting this issue. I think because name is optional, we need to execute set-access-rule using rule UID. We will investigate it and hope to fix that in the next version of Check Point provider.
Thanks, Roy
Hi @SMBurrows, We fixed this bug in the new release of Check Point provider v1.2.0. Please upgrade the provider to latest version and try again.
Regards, Roy
I have found a bug but I'm not sure if it's a bug with the provider or the Check Point API.
When importing an access_rule that does not have a name set the terraform.tfstate file shows: R80.40
name: null
R80.10name: ""
Updating this object an running a plan would correctly show a change in the plan, however when you apply the Check Point API returns a 500 error:
I noticed that in an R80.40 environment that the tfstate file updates itself after this error and populates the
name
of the access rule with it'sUID
, then running apply again - it works.In R80.10 the name always stays as an empty string and repeatably fails.
So I've found that manually setting the name in the state file before applying will "fix" the problem but not much of a solution.