The Buildkite provider allows you to manage CI/CD pipelines, clusters, teams, and agents in your Buildkite organization.
Provider Configuration#
Required Settings#
| Parameter | Description | Environment Variable |
|---|---|---|
apiToken | Buildkite API access token | BUILDKITE_API_TOKEN |
organization | Buildkite organization slug | BUILDKITE_ORGANIZATION_SLUG |
Environment Variables#
Pulumi Configuration#
Provider Instance#
Getting Your API Token#
- Log in to Buildkite
- Go to Personal Settings → API Access Tokens
- Click New API Access Token
- Give it a descriptive name (e.g., "Pulumi Provider")
- Select the required scopes:
read_pipelinesandwrite_pipelinesfor pipeline managementread_buildsandwrite_buildsfor build managementread_agentsfor agent informationread_teamsandwrite_teamsfor team management
- Click Create API Access Token
- Copy the token and store it securely
Required Scopes#
| Operation | Required Scopes |
|---|---|
| Manage pipelines | read_pipelines, write_pipelines |
| Manage teams | read_teams, write_teams |
| Manage agents | read_agents |
| Manage clusters | read_clusters, write_clusters |
| Read organization | read_organizations |
| GraphQL API access | graphql |
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: