Closed deutmeyerbrianpfg closed 3 years ago
Hi @deutmeyerbrianpfg ,
Thanks for reporting this issue. Parameter 'source' exists in 'machines' and 'users' fields and it's required in set operation. Do you have one of the fields in your configuration? If yes, Did you modify one of them as well? We will investigate this issue and fix it in the next version of Check Point provider.
Regards, Roy
Hi @chkp-royl-
Yes, we have the users
block set. We are setting the same AD group name in the comments of the access role so we can search in SmartConsole. The only the thing that changed was the comments. Everything else remained the same.
Here is the resource in question. We only want to fix the comments to match the selection of the users block (changing the =
to a -
):
resource "checkpoint_management_access_role" "ar_my_ad_group_name" {
name = "ar_my_ad_group_name"
users {
source = "my.domain.com__AD"
selection = ["my-ad-group-name"]
}
comments = "my=ad-group-name"
tags = ["terraform"]
}
Hi @deutmeyerbrianpfg,
In order to better understand why this issue happen, please re-produce it and send terraform + API server (run 'api status -s') logs to royl@checkpoint.com.
Thanks in advance, Roy
Done
Hi @deutmeyerbrianpfg ,
We delivered fix for this issue in the new version of Check Point provider v1.5.0. Please download new version and let us know if you still face any problem.
Regards, Roy
I needed to update the comment on an access role to fix a typo. The original version had an equal sign (=) instead of a (-). When terraform tries to make the update, it ends in failure. See below for the output from Terraform. To recreate this: