Skip to main content

Configuration

Configure the Buildkite provider for CI/CD pipeline management
2 min read

The Buildkite provider allows you to manage CI/CD pipelines, clusters, teams, and agents in your Buildkite organization.

Provider Configuration#

Required Settings#

ParameterDescriptionEnvironment Variable
apiTokenBuildkite API access tokenBUILDKITE_API_TOKEN
organizationBuildkite organization slugBUILDKITE_ORGANIZATION_SLUG

Environment Variables#

Pulumi Configuration#

Provider Instance#

Getting Your API Token#

  1. Log in to Buildkite
  2. Go to Personal Settings → API Access Tokens
  3. Click New API Access Token
  4. Give it a descriptive name (e.g., "Pulumi Provider")
  5. Select the required scopes:
    • read_pipelines and write_pipelines for pipeline management
    • read_builds and write_builds for build management
    • read_agents for agent information
    • read_teams and write_teams for team management
  6. Click Create API Access Token
  7. Copy the token and store it securely

Required Scopes#

OperationRequired Scopes
Manage pipelinesread_pipelines, write_pipelines
Manage teamsread_teams, write_teams
Manage agentsread_agents
Manage clustersread_clusters, write_clusters
Read organizationread_organizations
GraphQL API accessgraphql

Multi-Environment Setup#

Best Practices#

Store Tokens Securely#

Use Least Privilege#

Create API tokens with only the scopes needed for your use case. Avoid using tokens with full access when only pipeline management is needed.

Separate Tokens per Environment#

Use different API tokens for different Pulumi stacks to maintain environment isolation: