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

checkpoint_management_service_tcp create failure with non unique port #66

Closed Sreerag74031 closed 3 years ago

Sreerag74031 commented 3 years ago

We are getting error when tried to create tcp service reasource with non-unique port. As per documentation port need not be unique

╷ │ Error: failed to execute API call │ Status: 400 Bad Request │ Code: err_validation_failed │ Message: Validation failed with 1 warning │ Warnings: │ 1. The port is already used by another service. │ │   on main.tf line 76, in resource "checkpoint_management_service_tcp" "tcp_services": │   76: resource "checkpoint_management_service_tcp" "tcp_services" { │ ╵

In checkpoint console we do create services with same port and different name, is there an option in terraform we could do the same?

chkp-royl commented 3 years ago

Hi @Sreerag74031 , You can ignore server warnings by using flag ignore_warnings = True (default value is False) Please add this flag to resource configuration and let me know if it's working for you.

Thanks, Roy

Sreerag74031 commented 3 years ago

@chkp-royl Flag ignore_warnings = True worked. thanks