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 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: