<?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: Terraform simple_cluster member state import in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132772#M6380</link>
    <description>&lt;P&gt;It should save in state all the fields covered by 'show-simple-cluster' API command. There might be changes on smart center that are not reflect in state since the API command doesn't support all object attributes so these will not be seen by terraform. If you are talking about data we receive by 'show-simple-cluster' then we will make sure it's being save to state file correctly.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 08:39:23 GMT</pubDate>
    <dc:creator>chkp-royl</dc:creator>
    <dc:date>2021-10-28T08:39:23Z</dc:date>
    <item>
      <title>Terraform simple_cluster member state import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/131917#M6341</link>
      <description>&lt;P&gt;In Terraform the provider should support importing all properties. At the moment it seems like the 1.4 provider does not import cluster members, and any attempt to plan an existing cluster fails due to trying to add new members.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;resource "checkpoint_management_simple_cluster" "core-1" {
  name                = "core-1"
  ipv4_address        = "1.2.3.4"
  version             = "R80.40"
  hardware            = "Open server"
  send_logs_to_server = ["gaia-r81-mgmt"]
  firewall            = true
  members {
    name       = "member-1"
    ip_address = "1.2.3.3"
  }
  members {
    name       = "member-2"
    ip_address = "1.2.3.2"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;This code should be enough to get the state imported, though there is no sign of the members in the state.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 21:44:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/131917#M6341</guid>
      <dc:creator>Harald_Hansen</dc:creator>
      <dc:date>2021-10-17T21:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform simple_cluster member state import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132160#M6348</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/42080"&gt;@chkp-royl&lt;/a&gt;&amp;nbsp;any idea?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 22:48:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132160#M6348</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-10-19T22:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform simple_cluster member state import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132768#M6378</link>
      <description>&lt;P&gt;I'll have to expand on this;&lt;/P&gt;&lt;P&gt;Due to the lack of import support, the CP-provider is not able to monitor changes in simple cluster objects, for instance when something changes on the smart center, this is not reflected in the state. So there is no guarantee the code will match reality after getting deployed.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:02:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132768#M6378</guid>
      <dc:creator>Harald_Hansen</dc:creator>
      <dc:date>2021-10-28T08:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform simple_cluster member state import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132771#M6379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@&lt;SPAN&gt;Harald_Hansen,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for your report.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We are investigating this issue and hope to fix it ASAP.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:34:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132771#M6379</guid>
      <dc:creator>chkp-royl</dc:creator>
      <dc:date>2021-10-28T08:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform simple_cluster member state import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132772#M6380</link>
      <description>&lt;P&gt;It should save in state all the fields covered by 'show-simple-cluster' API command. There might be changes on smart center that are not reflect in state since the API command doesn't support all object attributes so these will not be seen by terraform. If you are talking about data we receive by 'show-simple-cluster' then we will make sure it's being save to state file correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 08:39:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132772#M6380</guid>
      <dc:creator>chkp-royl</dc:creator>
      <dc:date>2021-10-28T08:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform simple_cluster member state import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132789#M6381</link>
      <description>&lt;P&gt;The show command displays every cluster interface with interface-type, for instance.&lt;/P&gt;&lt;P&gt;Changing that in SmartCenter is not reflected in terraform plan.&lt;/P&gt;&lt;P&gt;I'm running latest version on SmartCenter and TF/provider, freshly installed in my lab (no interference with production or large rulebases).&lt;/P&gt;&lt;P&gt;There are other issues with the simple-cluster resource, for instance is the member ip not set correctly in many instances.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 10:48:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/132789#M6381</guid>
      <dc:creator>Harald_Hansen</dc:creator>
      <dc:date>2021-10-28T10:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform simple_cluster member state import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/180307#M7693</link>
      <description>&lt;P&gt;Hi Roy,&lt;/P&gt;
&lt;P&gt;any update regarding this issue?&lt;BR /&gt;We are trying to use terraform import to get TF syntax for creating simple cluster. &lt;STRONG&gt;The issue is that members are missing in the output even though they are defined under cluster object in SmartConsole:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# # checkpoint_management_simple_cluster.bc-demo-ext:

# resource "checkpoint_management_simple_cluster" "bc-demo-ext" {

#   anti_bot                   = false
#   anti_virus                 = false
#   application_control        = true
#   cluster_mode               = "cluster-xl-ha"
#   color                      = "pink"
#   content_awareness          = false
#   #dynamic_ip                 = false
#   fetch_policy               = []
#   firewall                   = true
#   hardware                   = "Open server"
#   #id                         = "bc-demo-ext"
#   identity_awareness         = false
#   ips                        = true
#   ipv4_address               = "20.1.2.3"
#   name                       = "bc-demo-ext"
#   nat_settings               = {}
#   os_name                    = "Gaia"
#   proxy_settings             = {}
#   save_logs_locally          = false
#   send_alerts_to_server      = []
#   send_logs_to_backup_server = []
#   send_logs_to_server = [
#     "bc-demo-mgmt",
#   ]
#   tags             = []
#   threat_emulation = false
#   url_filtering    = false
#   version          = "R81.10"
#   vpn              = false
#   platform_portal_settings {
#     accessibility {
#       allow_access_from = "RULE_BASE"
#     }
#     portal_web_settings {
#       aliases  = []
#       main_url = "https://20.1.2.3/"
#     }
#   }
# }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 08:03:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Terraform-simple-cluster-member-state-import/m-p/180307#M7693</guid>
      <dc:creator>Pavel_Krejci</dc:creator>
      <dc:date>2023-05-09T08:03:19Z</dc:date>
    </item>
  </channel>
</rss>

