Skip to content

PaloAltoNetworks/terraform-provider-prismasdwan

Terraform Provider for Palo Alto Networks Prisma SD-WAN API

Requirements

  • Terraform v1+
  • Go v1.21+ (to build the provider from source)

Building the Provider

  1. Install Go

  2. Clone this repo:

git clone https://github.com/paloaltonetworks/terraform-provider-prismasdwan
  1. Build the provider:
cd terraform-provider-prismasdwan
make build
  1. Specify the dev_overrides configuration per the next section below. This tells Terraform where to find the provider you just built. The directory to specify is the full path to the cloned provider repo.

Developing the Provider

With Terraform v1 and later, development overrides for provider developers can be leveraged in order to use the provider built from source.

To do this, create/populate a Terraform CLI configuration file (~/.terraformrc for all platforms other than Windows; terraform.rc in the %APPDATA% directory when using Windows) with at least the following options:

provider_installation {
  dev_overrides {
    "registry.terraform.io/paloaltonetworks-local/prismasdwan" = "/path/to/cloned/repo/terraform-provider-prismasdwan"
  }

  direct {}
}

Then when referencing the locally built provider, use the local name in the terraform configuration block like so:

terraform {
    required_providers {
        prismasdwan = {
            source = "paloaltonetworks-local/prismasdwan"
            version = "1.0.0"
        }
    }
}

About

The standalone Terraform provider for Prisma SD-WAN

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages