Closed harhan closed 2 years ago
hi @harhan, Thank you for this issue, the documentations will change in the next version. note that you need to set the default value as shown in the plan. meaning you need to set track, track->accounting, and etc. We will add the defaults to the documentations examples.
I rather see you improve the provider by setting the correct default values on optional properties. There should be no need to set these values in HCL if they are not needed. We need Check Point to make this provider developer friendly, as I requested in #88. This is going the opposite direction.
It has upsides and downsides, not asking the user to set the default values results in the state not saving the default values, which leads to the provider's not seeing the changes in the default value as a change in plan, and that is a big downside. We are trying to make the provider as friendly as possible, but sometimes we are forced to choose proper functioning over friendliness.
Every provider I use with cloud native, for instance azurerm, uses this approach. I can inspect the state and see the default values there. If I'm not happy with what the provider has selected as default I can change it in HCL.
No problem, We will support this in the next terraform version.
Hi @harhan , This issue is fixed on the new provider's version, which is available now.
Thank you
When applying the HCL from the example in the documentation the subsequent plans propose changes to the applied settings. I've isolated this code/rule, that's why the position is changed.
Results in plans:
One should expect this code in the documentation is tested?