Skip to main content
The Portkey Terraform provider enables you to manage Portkey resources through the Admin API using infrastructure as code.

Features

  • Workspaces: Create, update, and manage workspaces for organizing teams and projects
  • Workspace members: Assign users to workspaces with specific roles
  • User invitations: Send invitations to users with organization and workspace access
  • Users: Query and manage existing users in your organization

Requirements

  • Terraform >= 1.0
  • A Portkey account with Admin API access

Installation

Add the provider to your Terraform configuration:

Authentication

The provider requires a Portkey Admin API key. Set it via environment variable (recommended):
Or in the provider configuration:
Admin API keys provide broad access to your organization. Store them securely and never commit them to version control.

Quick start

Self-hosted deployments

For self-hosted Portkey deployments, configure the base URL:

Resources and data sources

For complete documentation on available resources, data sources, and their arguments, see the Terraform provider repository.

Support