Hello
We would like for our futur architecture to build pour policies via terraform.
So I installed a lab but I have an issue when I try to publish the new change.
I followed this documentation :
As of right now, Terraform does not provide native support for publish and install-policy, so both of them are handled out-of-band.
In order to use post Apply/Destroy commands, the authentication method must be via environment variables.
Publish
Please use the following for publish:
$ 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 && publish
But when i try it i have the following message :
➜ publish git:(master) go build publish.go
go: github.com/terraform-providers/terraform-provider-checkpoint/commands: github.com/terraform-providers/terraform-provider-checkpoint@v1.1.0: parsing go.mod:
module declares its path as: github.com/CheckPointSW/terraform-provider-checkpoint
but was required as: github.com/terraform-providers/terraform-provider-checkpoint
Idem to install policy
➜ install_policy git:(master) go build install_policy.go
go: github.com/terraform-providers/terraform-provider-checkpoint/commands: github.com/terraform-providers/terraform-provider-checkpoint@v1.1.0: parsing go.mod:
module declares its path as: github.com/CheckPointSW/terraform-provider-checkpoint
but was required as: github.com/terraform-providers/terraform-provider-checkpoint
Do you have a fix for me ?
How do you do in order to publish or install policy ?
Thanks for your help 🙂
Regards