Port is the Developer Platform meant to supercharge your DevOps and Developers, and allow you to regain control of your environment.
⚠️ Deprecation Notice
Version 1.x of the Port Terraform Provider is now deprecated.
Please upgrade to version 2.x for continued support, new features, and improvements.
Refer to the upgrade instructions to upgrade to version 2.x.
- Terraform
- Go >= 1.22 (to build the provider plugin)
- Port Credentials
Terraform utilizes the Terraform Registry to download and install providers. To install the port
provider, copy and paste the following code into your Terraform file:
terraform {
required_providers {
port = {
source = "port-labs/port-labs"
version = "~> 2.0.0"
}
}
}
provider "port" {
client_id = "{YOUR CLIENT ID}" # or set the environment variable PORT_CLIENT_ID
secret = "{YOUR CLIENT SECRET}" # or set the environment variable PORT_CLIENT_SECRET
}
After you have added the code above, run the following command:
terraform init
Please refer to the examples directory
Please refer to contributing.md