<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: checkpoint_management_group - cannot delete host in DevSecOps</title>
    <link>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166800#M113</link>
    <description>&lt;P&gt;I once had hell of a time with trying to delete identity provider object that was referenced with a specific gateway. I must have spent close to 3 hours with TAC on the phone until we finally got it...had to re-log back into Guidbedit close to 20 times and remove every single reference of it.I hope your case is not going to be like mine, but Gudbedit is always good place to start, because once removed from database, you will not have any issues with smart console.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2023 14:09:40 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2023-01-05T14:09:40Z</dc:date>
    <item>
      <title>checkpoint_management_group - cannot delete host</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166612#M110</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;using checkpoint_management_host with a for_each loop to iterate over a local nested map and create hosts.&lt;/LI&gt;&lt;LI&gt;using checkpoint_management_group to create a group and in members, add the values of the hosts i've just created.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Works fine when i create hosts, but when I remove them(from the map), terraform tries to delete the host before removing it from the group. CP API is then giving an error that it can't delete an used object.&lt;/P&gt;&lt;P&gt;The destroy happens before the update-in-place and the only way to change that is to use create_before_destroy but then I run into other issues with publishing/installing policies, because those use destroy and then create replacement.&lt;/P&gt;&lt;P&gt;Tried adding the replace_triggered_by to the group, but still it does update-in-place.&lt;/P&gt;&lt;P&gt;Any ideas how to solve this ?&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;``&lt;BR /&gt;locals {&lt;BR /&gt;clients = {&lt;BR /&gt;"client_1" = {&lt;BR /&gt;remote_ip = "10.100.200.1"&lt;BR /&gt;remote_port = "3001"&lt;BR /&gt;}&lt;BR /&gt;"client_2" = {&lt;BR /&gt;remote_ip = "10.100.200.2"&lt;BR /&gt;remote_port = "3002"&lt;BR /&gt;}&lt;BR /&gt;"client_3" = {&lt;BR /&gt;remote_ip = "10.100.200.3"&lt;BR /&gt;remote_port = "3003"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_host" "hosts_lab" {&lt;BR /&gt;for_each = local.clients&lt;BR /&gt;name = "host_${each.key}"&lt;BR /&gt;ipv4_address = each.value["remote_ip"]&lt;BR /&gt;ignore_warnings = true&lt;BR /&gt;nat_settings = {}&lt;BR /&gt;tags = []&lt;BR /&gt;lifecycle {&lt;BR /&gt;precondition {&lt;BR /&gt;condition = can(cidrsubnet("${each.value["remote_ip"]}/32",0,0))&lt;BR /&gt;error_message = "Must be valid IPv4 Address."&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_group" "groups_lab" {&lt;BR /&gt;name = "group_terraformed"&lt;BR /&gt;members = values(checkpoint_management_host.hosts_lab)[*].name&lt;BR /&gt;ignore_warnings = true&lt;BR /&gt;depends_on = [ checkpoint_management_host.hosts_lab]&lt;BR /&gt;lifecycle {&lt;BR /&gt;replace_triggered_by = [checkpoint_management_host.hosts_lab ]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_service_tcp" "tcp_service" {&lt;BR /&gt;for_each = local.clients&lt;BR /&gt;name = "tcp_${each.key}"&lt;BR /&gt;port = "${each.value.remote_port}"&lt;BR /&gt;session_timeout = 3600&lt;BR /&gt;match_for_any = true&lt;BR /&gt;sync_connections_on_cluster = true&lt;BR /&gt;ignore_warnings = true&lt;BR /&gt;aggressive_aging = {&lt;BR /&gt;enable = true&lt;BR /&gt;timeout = 360&lt;BR /&gt;use_default_timeout = false&lt;BR /&gt;}&lt;BR /&gt;keep_connections_open_after_policy_installation = true&lt;BR /&gt;tags = []&lt;BR /&gt;lifecycle {&lt;BR /&gt;precondition {&lt;BR /&gt;condition = (&lt;BR /&gt;each.value["remote_port"] &amp;gt;= 1000 &amp;amp;&amp;amp;&lt;BR /&gt;each.value["remote_port"] &amp;lt;= 65000&lt;BR /&gt;)&lt;BR /&gt;error_message = "Port number must be between 1000 and 65000"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_access_rule" "in-policy-FWL_VS1" {&lt;BR /&gt;for_each = local.clients&lt;BR /&gt;name = "${each.key}"&lt;BR /&gt;layer = "FWLVS1_policy Network"&lt;BR /&gt;position = { top = "top" }&lt;BR /&gt;source = ["existing_group"]&lt;BR /&gt;destination = ["host_${each.key}"]&lt;BR /&gt;service = ["tcp_${each.key}"]&lt;BR /&gt;action = "Accept"&lt;BR /&gt;track = {&lt;BR /&gt;accounting = true&lt;BR /&gt;type = "Log"&lt;BR /&gt;per_connection = "true"&lt;BR /&gt;}&lt;BR /&gt;depends_on = [ checkpoint_management_host.hosts_lab, checkpoint_management_service_tcp.tcp_service ]&lt;BR /&gt;action_settings = {&lt;BR /&gt;enable_identity_captive_portal = false&lt;BR /&gt;}&lt;BR /&gt;content = []&lt;BR /&gt;custom_fields = {}&lt;BR /&gt;time = []&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_access_rule" "in-policy-FWL_VS2" {&lt;BR /&gt;for_each = local.clients&lt;BR /&gt;name = "${each.key}"&lt;BR /&gt;layer = "FWLVS2_policy Network"&lt;BR /&gt;position = { top = "top" }&lt;BR /&gt;source = ["existing_group"]&lt;BR /&gt;destination = ["host_${each.key}"]&lt;BR /&gt;service = ["tcp_${each.key}"]&lt;BR /&gt;action = "Accept"&lt;BR /&gt;track = {&lt;BR /&gt;accounting = true&lt;BR /&gt;type = "Log"&lt;BR /&gt;per_connection = "true"&lt;BR /&gt;}&lt;BR /&gt;depends_on = [ checkpoint_management_host.hosts_lab, checkpoint_management_service_tcp.tcp_service ]&lt;BR /&gt;action_settings = {&lt;BR /&gt;enable_identity_captive_portal = false&lt;BR /&gt;}&lt;BR /&gt;content = []&lt;BR /&gt;custom_fields = {}&lt;BR /&gt;time = []&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_publish" "unstable_lab" {&lt;BR /&gt;triggers = toset([sha1(jsonencode([&lt;BR /&gt;checkpoint_management_host.hosts_lab,&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS1,&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS2,&lt;BR /&gt;checkpoint_management_service_tcp.tcp_service,&lt;BR /&gt;]))])&lt;BR /&gt;depends_on = [checkpoint_management_host.hosts_lab, checkpoint_management_access_rule.in-policy-FWL_VS1, checkpoint_management_access_rule.in-policy-FWL_VS2, checkpoint_management_service_tcp.tcp_service]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_install_policy" "FWL_VS1" {&lt;BR /&gt;policy_package = "FWLVS1_policy"&lt;BR /&gt;targets = ["FWLVS1"]&lt;BR /&gt;triggers = toset([sha1(jsonencode([&lt;BR /&gt;checkpoint_management_host.hosts_lab,&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS1,&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS2,&lt;BR /&gt;checkpoint_management_service_tcp.tcp_service,&lt;BR /&gt;]))])&lt;BR /&gt;depends_on = [checkpoint_management_host.hosts_lab, checkpoint_management_access_rule.in-policy-FWL_VS1, checkpoint_management_access_rule.in-policy-FWL_VS2, checkpoint_management_service_tcp.tcp_service, checkpoint_management_publish.unstable_lab ]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_install_policy" "FWL_VS2" {&lt;BR /&gt;policy_package = "FWLVS2_policy"&lt;BR /&gt;targets = ["FWLVS2"]&lt;BR /&gt;triggers = toset([sha1(jsonencode([&lt;BR /&gt;checkpoint_management_host.hosts_lab,&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS1,&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS2,&lt;BR /&gt;checkpoint_management_service_tcp.tcp_service,&lt;BR /&gt;]))])&lt;BR /&gt;depends_on = [checkpoint_management_host.hosts_lab, checkpoint_management_access_rule.in-policy-FWL_VS1, checkpoint_management_access_rule.in-policy-FWL_VS2, checkpoint_management_service_tcp.tcp_service, checkpoint_management_publish.unstable_lab, checkpoint_management_install_policy.FWL_VS1 ]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "checkpoint_management_logout" "unstable_lab" {&lt;BR /&gt;triggers = ["${timestamp()}"]&lt;BR /&gt;depends_on = [checkpoint_management_host.hosts_lab, checkpoint_management_access_rule.in-policy-FWL_VS1, checkpoint_management_access_rule.in-policy-FWL_VS2, checkpoint_management_service_tcp.tcp_service, checkpoint_management_publish.unstable_lab, checkpoint_management_install_policy.FWL_VS1, checkpoint_management_install_policy.FWL_VS2]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;``&lt;/P&gt;&lt;P&gt;Terraform used the selected providers to generate the following execution&lt;BR /&gt;plan. Resource actions are indicated with the following symbols:&lt;BR /&gt;~ update in-place&lt;BR /&gt;- destroy&lt;BR /&gt;-/+ destroy and then create replacement&lt;BR /&gt;Terraform will perform the following actions:&lt;/P&gt;&lt;H1&gt;checkpoint_management_access_rule.in-policy-FWL_VS1["client_3"] will be destroyed&lt;/H1&gt;&lt;H1&gt;(because key ["client_3"] is not in for_each map)&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;resource "checkpoint_management_access_rule" "in-policy-FWL_VS1" {&lt;UL&gt;&lt;LI&gt;action = "Accept" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;action_settings = {&lt;UL&gt;&lt;LI&gt;"enable_identity_captive_portal" = "false"&lt;BR /&gt;} -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;content = [] -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;content_direction = "any" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;content_negate = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;custom_fields = {} -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;destination = [&lt;UL&gt;&lt;LI&gt;"host_client_3",&lt;BR /&gt;] -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;destination_negate = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;enabled = true -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;id = "60df76ab-952c-4a81-9242-f811fc712003" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ignore_errors = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ignore_warnings = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;install_on = [] -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;layer = "FWL-BE-DMZINT_policy Network" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;name = "client_3" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;position = {&lt;UL&gt;&lt;LI&gt;"top" = "top"&lt;BR /&gt;} -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;service = [&lt;UL&gt;&lt;LI&gt;"tcp_client_3",&lt;BR /&gt;] -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;service_negate = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;source = [&lt;UL&gt;&lt;LI&gt;"existing_group",&lt;BR /&gt;] -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;source_negate = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;time = [] -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;track = {&lt;UL&gt;&lt;LI&gt;"accounting" = "true"&lt;/LI&gt;&lt;LI&gt;"per_connection" = "true"&lt;/LI&gt;&lt;LI&gt;"type" = "Log"&lt;BR /&gt;} -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;vpn = "Any" -&amp;gt; null&lt;BR /&gt;}&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H1&gt;checkpoint_management_access_rule.in-policy-FWL_VS2["client_3"] will be destroyed&lt;/H1&gt;&lt;H1&gt;(because key ["client_3"] is not in for_each map)&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;resource "checkpoint_management_access_rule" "in-policy-FWL_VS2" {&lt;UL&gt;&lt;LI&gt;action = "Accept" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;action_settings = {&lt;UL&gt;&lt;LI&gt;"enable_identity_captive_portal" = "false"&lt;BR /&gt;} -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;content = [] -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;content_direction = "any" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;content_negate = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;custom_fields = {} -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;destination = [&lt;UL&gt;&lt;LI&gt;"host_client_3",&lt;BR /&gt;] -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;destination_negate = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;enabled = true -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;id = "0fee58d6-0f04-43c7-96eb-4acdddbccc43" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ignore_errors = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ignore_warnings = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;install_on = [] -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;layer = "FWL-BE-DMZPRV_policy Network" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;name = "client_3" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;position = {&lt;UL&gt;&lt;LI&gt;"top" = "top"&lt;BR /&gt;} -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;service = [&lt;UL&gt;&lt;LI&gt;"tcp_client_3",&lt;BR /&gt;] -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;service_negate = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;source = [&lt;UL&gt;&lt;LI&gt;"existing_group",&lt;BR /&gt;] -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;source_negate = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;time = [] -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;track = {&lt;UL&gt;&lt;LI&gt;"accounting" = "true"&lt;/LI&gt;&lt;LI&gt;"per_connection" = "true"&lt;/LI&gt;&lt;LI&gt;"type" = "Log"&lt;BR /&gt;} -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;vpn = "Any" -&amp;gt; null&lt;BR /&gt;}&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H1&gt;checkpoint_management_group.groups_lab will be updated in-place&lt;/H1&gt;&lt;P&gt;~ resource "checkpoint_management_group" "groups_lab" {&lt;BR /&gt;id = "cb645dd5-5221-445a-ab4b-d12d8bab0a61"&lt;BR /&gt;~ members = [&lt;BR /&gt;- "host_client_3",&lt;BR /&gt;# (2 unchanged elements hidden)&lt;BR /&gt;]&lt;BR /&gt;name = "group_terraformed"&lt;BR /&gt;tags = []&lt;BR /&gt;# (3 unchanged attributes hidden)&lt;BR /&gt;}&lt;/P&gt;&lt;H1&gt;checkpoint_management_host.hosts_lab["client_3"] will be destroyed&lt;/H1&gt;&lt;H1&gt;(because key ["client_3"] is not in for_each map)&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;resource "checkpoint_management_host" "hosts_lab" {&lt;UL&gt;&lt;LI&gt;color = "black" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;id = "c2605a4c-6800-4654-909c-f98b7e3fe1d0" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ignore_errors = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ignore_warnings = true -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ipv4_address = "10.100.200.3" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;name = "host_client_3" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;nat_settings = {} -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;tags = [] -&amp;gt; null&lt;BR /&gt;}&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H1&gt;checkpoint_management_install_policy.FWL_VS1 must be replaced&lt;/H1&gt;&lt;P&gt;-/+ resource "checkpoint_management_install_policy" "FWL_VS1" {&lt;BR /&gt;~ id = "install-policy-nrqihmvykd" -&amp;gt; (known after apply)&lt;BR /&gt;~ task_id = "1ccf9d30-b246-43f4-8ce8-1c8cc2b5bb49" -&amp;gt; (known after apply)&lt;BR /&gt;~ triggers = [ # forces replacement&lt;BR /&gt;+ "00634fa4a304ad78e0d01badc15de0e3859b95e1",&lt;BR /&gt;- "b9d1295431895bedb0005b1b1a877bed2f451200",&lt;BR /&gt;]&lt;BR /&gt;# (4 unchanged attributes hidden)&lt;BR /&gt;}&lt;/P&gt;&lt;H1&gt;checkpoint_management_install_policy.FWL_VS2 must be replaced&lt;/H1&gt;&lt;P&gt;-/+ resource "checkpoint_management_install_policy" "FWL_VS2" {&lt;BR /&gt;~ id = "install-policy-br8oh3nykd" -&amp;gt; (known after apply)&lt;BR /&gt;~ task_id = "95c7efda-2ac7-48ed-a72f-235fa835e0d8" -&amp;gt; (known after apply)&lt;BR /&gt;~ triggers = [ # forces replacement&lt;BR /&gt;+ "00634fa4a304ad78e0d01badc15de0e3859b95e1",&lt;BR /&gt;- "b9d1295431895bedb0005b1b1a877bed2f451200",&lt;BR /&gt;]&lt;BR /&gt;# (4 unchanged attributes hidden)&lt;BR /&gt;}&lt;/P&gt;&lt;H1&gt;checkpoint_management_logout.unstable_lab must be replaced&lt;/H1&gt;&lt;P&gt;-/+ resource "checkpoint_management_logout" "unstable_lab" {&lt;BR /&gt;~ id = "logout-ypdyzdj9kg" -&amp;gt; (known after apply)&lt;BR /&gt;~ triggers = [&lt;BR /&gt;- "2023-01-03T18:20:43Z",&lt;BR /&gt;] -&amp;gt; (known after apply) # forces replacement&lt;BR /&gt;}&lt;/P&gt;&lt;H1&gt;checkpoint_management_publish.unstable_lab must be replaced&lt;/H1&gt;&lt;P&gt;-/+ resource "checkpoint_management_publish" "unstable_lab" {&lt;BR /&gt;~ id = "publish-vgndg6ldby" -&amp;gt; (known after apply)&lt;BR /&gt;~ task_id = "01234567-89ab-cdef-8d12-8c39b51d80ed" -&amp;gt; (known after apply)&lt;BR /&gt;~ triggers = [ # forces replacement&lt;BR /&gt;+ "00634fa4a304ad78e0d01badc15de0e3859b95e1",&lt;BR /&gt;- "b9d1295431895bedb0005b1b1a877bed2f451200",&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;H1&gt;checkpoint_management_service_tcp.tcp_service["client_3"] will be destroyed&lt;/H1&gt;&lt;H1&gt;(because key ["client_3"] is not in for_each map)&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;resource "checkpoint_management_service_tcp" "tcp_service" {&lt;UL&gt;&lt;LI&gt;aggressive_aging = {&lt;UL&gt;&lt;LI&gt;"enable" = "true"&lt;/LI&gt;&lt;LI&gt;"timeout" = "360"&lt;/LI&gt;&lt;LI&gt;"use_default_timeout" = "false"&lt;BR /&gt;} -&amp;gt; null&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;color = "black" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;id = "6fe11bfc-2659-47f8-a04e-80fec5593c50" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ignore_errors = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;ignore_warnings = true -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;keep_connections_open_after_policy_installation = true -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;match_by_protocol_signature = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;match_for_any = true -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;name = "tcp_client_3" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;override_default_settings = false -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;port = "3003" -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;session_timeout = 3600 -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;sync_connections_on_cluster = true -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;tags = [] -&amp;gt; null&lt;/LI&gt;&lt;LI&gt;use_default_session_timeout = true -&amp;gt; null&lt;BR /&gt;}&lt;BR /&gt;Plan: 4 to add, 1 to change, 8 to destroy.&lt;BR /&gt;checkpoint_management_logout.unstable_lab: Destroying... [id=logout-ypdyzdj9kg]&lt;BR /&gt;checkpoint_management_logout.unstable_lab: Destruction complete after 0s&lt;BR /&gt;checkpoint_management_install_policy.FWL_VS2: Destroying... [id=install-policy-br8oh3nykd]&lt;BR /&gt;checkpoint_management_install_policy.FWL_VS2: Destruction complete after 0s&lt;BR /&gt;checkpoint_management_install_policy.FWL_VS1: Destroying... [id=install-policy-nrqihmvykd]&lt;BR /&gt;checkpoint_management_install_policy.FWL_VS1: Destruction complete after 0s&lt;BR /&gt;checkpoint_management_publish.unstable_lab: Destroying... [id=publish-vgndg6ldby]&lt;BR /&gt;checkpoint_management_publish.unstable_lab: Destruction complete after 0s&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS1["client_3"]: Destroying... [id=60df76ab-952c-4a81-9242-f811fc712003]&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS2["client_3"]: Destroying... [id=0fee58d6-0f04-43c7-96eb-4acdddbccc43]&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS1["client_3"]: Destruction complete after 0s&lt;BR /&gt;checkpoint_management_access_rule.in-policy-FWL_VS2["client_3"]: Destruction complete after 0s&lt;BR /&gt;checkpoint_management_host.hosts_lab["client_3"]: Destroying... [id=c2605a4c-6800-4654-909c-f98b7e3fe1d0]&lt;BR /&gt;checkpoint_management_service_tcp.tcp_service["client_3"]: Destroying... [id=6fe11bfc-2659-47f8-a04e-80fec5593c50]&lt;BR /&gt;checkpoint_management_service_tcp.tcp_service["client_3"]: Destruction complete after 0s&lt;BR /&gt;╷&lt;BR /&gt;│ Error: failed to execute API call&lt;BR /&gt;│ Status: 400 Bad Request&lt;BR /&gt;│ Code: err_validation_failed&lt;BR /&gt;│ Message: Validation failed with 1 warning&lt;BR /&gt;│ Warnings:&lt;BR /&gt;│ 1. Object host_client_3 is used by the following objects: group_terraformed&lt;BR /&gt;│&lt;BR /&gt;│&lt;BR /&gt;╵&lt;BR /&gt;Cleaning up project directory and file based variables&lt;BR /&gt;00:00&lt;BR /&gt;ERROR: Job failed: exit code 1&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 03 Jan 2023 18:50:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166612#M110</guid>
      <dc:creator>alexproca</dc:creator>
      <dc:date>2023-01-03T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint_management_group - cannot delete host</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166762#M111</link>
      <description>&lt;P&gt;Another note, I tried ignore_warnings/errors but it did not work also, the checkpoint api/gui does not allow you to delete a host that is part of a group.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 09:48:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166762#M111</guid>
      <dc:creator>alexproca</dc:creator>
      <dc:date>2023-01-05T09:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint_management_group - cannot delete host</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166788#M112</link>
      <description>&lt;P&gt;What is the version/JHF of management?&lt;BR /&gt;What does a where-used on the relevant object show?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 13:10:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166788#M112</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-01-05T13:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint_management_group - cannot delete host</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166800#M113</link>
      <description>&lt;P&gt;I once had hell of a time with trying to delete identity provider object that was referenced with a specific gateway. I must have spent close to 3 hours with TAC on the phone until we finally got it...had to re-log back into Guidbedit close to 20 times and remove every single reference of it.I hope your case is not going to be like mine, but Gudbedit is always good place to start, because once removed from database, you will not have any issues with smart console.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 14:09:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166800#M113</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-01-05T14:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint_management_group - cannot delete host</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166888#M114</link>
      <description>&lt;P&gt;HOTFIX_R81_10_JUMBO_HF_MAIN Take: 66&lt;/P&gt;&lt;P&gt;The relevant object showed up in the group I created with terraform. Process.&lt;/P&gt;&lt;P&gt;1. create host x with terraform&lt;/P&gt;&lt;P&gt;2. create group y with members host x with terraform&lt;/P&gt;&lt;P&gt;at this point host x was used in group y.&lt;/P&gt;&lt;P&gt;3. when trying to delete host x, terraform does two things:&lt;BR /&gt;3a. delete: host x&lt;BR /&gt;3b. update-in-place: remove host x from group y&lt;/P&gt;&lt;P&gt;Since terraform is trying to do 3a before 3b, API gives error that the group is used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 08:45:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166888#M114</guid>
      <dc:creator>alexproca</dc:creator>
      <dc:date>2023-01-06T08:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: checkpoint_management_group - cannot delete host</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166889#M115</link>
      <description>&lt;P&gt;It's a terraform provider problem, not a management or api problem.&lt;BR /&gt;Also posted this on the provider github page and a developer acknowledged the bug and promised to solve in the next release.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/CheckPointSW/terraform-provider-checkpoint/issues/135" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/terraform-provider-checkpoint/issues/135&lt;/A&gt;&lt;BR /&gt;The version i tried is&amp;nbsp;v2.1.0 so look for the bug fix in the release notes of future versions.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:16:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/checkpoint-management-group-cannot-delete-host/m-p/166889#M115</guid>
      <dc:creator>alexproca</dc:creator>
      <dc:date>2023-01-06T14:16:51Z</dc:date>
    </item>
  </channel>
</rss>

