<?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: Publish changes done by terraform in DevSecOps</title>
    <link>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/111443#M40</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;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/6593"&gt;@Ryan_Darst&lt;/a&gt;&amp;nbsp;any suggestions here?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2021 18:52:13 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2021-02-21T18:52:13Z</dc:date>
    <item>
      <title>Publish changes done by terraform</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/111318#M38</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We would like for our futur architecture to build pour policies via terraform.&lt;/P&gt;&lt;P&gt;So I installed a lab but I have an issue when I try to publish the new change.&lt;/P&gt;&lt;P&gt;I followed this documentation :&lt;/P&gt;&lt;P&gt;&amp;nbsp;As of right now, Terraform does not provide native support for publish and install-policy, so both of them are handled out-of-band.&lt;/P&gt;&lt;P&gt;In order to use post Apply/Destroy commands, the authentication method must be via environment variables.&lt;/P&gt;&lt;P&gt;&lt;A href="https://registry.terraform.io/providers/CheckPointSW/checkpoint/latest/docs#publish" target="_blank" rel="noopener"&gt;Publish&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please use the following for publish:&lt;/P&gt;&lt;PRE&gt;$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-checkpoint/commands/publish
$ go build publish.go
$ mv publish $GOPATH/src/github.com/terraform-providers/terraform-provider-checkpoint
$ terraform apply &amp;amp;&amp;amp; publish&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i try it i have the following message :&lt;/P&gt;&lt;P&gt;➜ publish git:(master) go build publish.go&lt;BR /&gt;go: github.com/terraform-providers/terraform-provider-checkpoint/commands: github.com/terraform-providers/terraform-provider-checkpoint@v1.1.0: parsing go.mod:&lt;BR /&gt;module declares its path as: github.com/CheckPointSW/terraform-provider-checkpoint&lt;BR /&gt;but was required as: github.com/terraform-providers/terraform-provider-checkpoint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idem to install policy&lt;/P&gt;&lt;P&gt;➜ install_policy git:(master) go build install_policy.go&lt;BR /&gt;go: github.com/terraform-providers/terraform-provider-checkpoint/commands: github.com/terraform-providers/terraform-provider-checkpoint@v1.1.0: parsing go.mod:&lt;BR /&gt;module declares its path as: github.com/CheckPointSW/terraform-provider-checkpoint&lt;BR /&gt;but was required as: github.com/terraform-providers/terraform-provider-checkpoint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a fix for me ?&lt;/P&gt;&lt;P&gt;How do you do in order to publish or install policy ?&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 17:40:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/111318#M38</guid>
      <dc:creator>ninixclub</dc:creator>
      <dc:date>2021-02-19T17:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Publish changes done by terraform</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/111443#M40</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;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/6593"&gt;@Ryan_Darst&lt;/a&gt;&amp;nbsp;any suggestions here?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 18:52:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/111443#M40</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-02-21T18:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Publish changes done by terraform</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/111458#M41</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;When you are working with Terraform&amp;nbsp;you can handle the installation as well as the publish of the changes made by Terraform.&lt;/P&gt;
&lt;P&gt;I would simply use the resources you can find inside "&lt;SPAN&gt;checkpoint" provider in the registry, my suggestion would also be to use the latest version (as per today 1.3.0) of the provider.&amp;nbsp;&lt;/SPAN&gt;So you would set your provider like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;terraform {&lt;BR /&gt;&amp;nbsp; required_providers {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; checkpoint = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; source = "CheckPointSW/checkpoint"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; version = "&amp;gt;= 1.3.0"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Then in the main you would just need to add the resources to publish the changes at the end, be careful to use the right dependency for that one since you want to be executed after all the changes.&lt;/P&gt;
&lt;P&gt;So the policy install would be something like&lt;/P&gt;
&lt;PRE class="line-numbers  language-hcl"&gt;&lt;CODE&gt;resource "checkpoint_management_install_policy" "example" {
  policy_package = "standard"
  targets = ["corporate-gateway"]
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And the publish would be something like, with some "depends_on" statement inside,&lt;/P&gt;
&lt;PRE class="line-numbers  language-hcl"&gt;&lt;CODE&gt;resource "checkpoint_management_publish" "example" { }&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These examples are the ones in the public documentation of our provider that you can find here:&amp;nbsp;&lt;A href="https://registry.terraform.io/providers/CheckPointSW/checkpoint/latest/docs" target="_blank" rel="noopener"&gt;https://registry.terraform.io/providers/CheckPointSW/checkpoint/latest/docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want to see a real example here is a Terraform that I have created to make few action: such as creating few objects, a policy package, connect a datacenter object, install the CME, patch to a certain Jumbo Hotfix, etc&amp;nbsp;&lt;A href="https://github.com/gbrembati/terraform/blob/master/azure/mgmt-configuration/mgmtcfg-main.tf" target="_blank" rel="noopener"&gt;https://github.com/gbrembati/terraform/blob/master/azure/mgmt-configuration/mgmtcfg-main.tf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps,&lt;/P&gt;
&lt;P&gt;Giorgio&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 01:05:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/111458#M41</guid>
      <dc:creator>GBrembati</dc:creator>
      <dc:date>2021-02-22T01:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Publish changes done by terraform</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/122582#M75</link>
      <description>&lt;P&gt;Hi Giorgio,&lt;/P&gt;&lt;P&gt;Do you have a working example of using Terraform to verify and deploy a JHF to an on-premise HA cluster?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simon&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 09:54:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/122582#M75</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2021-06-30T09:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Publish changes done by terraform</title>
      <link>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/142142#M87</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I m working with the publish and policy with terraform, thanks also to you : )&lt;/P&gt;&lt;P&gt;But when I do any changes for example just add a host or change just a comment, its not being publish / installed.&lt;BR /&gt;&lt;BR /&gt;What can I do to always publish after every terraform apply? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 09:19:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/DevSecOps/Publish-changes-done-by-terraform/m-p/142142#M87</guid>
      <dc:creator>neilmalta</dc:creator>
      <dc:date>2022-02-22T09:19:31Z</dc:date>
    </item>
  </channel>
</rss>

