CheckPointSW / terraform-provider-checkpoint

Terraform provider for Check Point
https://www.terraform.io/docs/providers/checkpoint/
Mozilla Public License 2.0
28 stars 40 forks source link

Missing Position Parameter in checkpoint_management_access_section #52

Closed AlexeiBarabash closed 3 years ago

AlexeiBarabash commented 3 years ago

Hey I dont know if its a bug but I get this error when I try create Access Section

checkpoint_management_access_section.global: Creating... Error: failed to execute API call Status: 400 Bad Request Code: generic_err_missing_required_parameters Message: Missing parameter: [position] on z-rules.tf line 6, in resource "checkpoint_management_access_section" "global": 6: resource "checkpoint_management_access_section" "global" {

when I use position = {bottom = "bottom"} or position = {top = "top"} everything is working . but when I use below/above its not working for example : position = {below = checkpoint_management_access_rule.rule31.name} or position = {below = checkpoint_management_access_section.prod.name}

Am I missing something ? thank you

chkp-royl commented 3 years ago

Hi @AlexeiBarabash , Thanks you for reporting this issue. resource 'checkpoint_management_access_section' support position top/bottom and above. We will support position below on the future version of Check Point provider.

Regards, Roy

chkp-royl commented 3 years ago

Hi @AlexeiBarabash , We released new version v1.3.0 of provider include fix for this bug. Now you can set position 'below' like in your example. Please upgrade provider and test it. If you still encounter any problem, please open new issue.

Thanks, Roy