Terraform

Buildkite Packages provides repository support for Terraform packages.

Once your Terraform package repository has been created, you can upload packages (generated from your application's build) to this repository via the curl command presented on your Terraform package repository's details page.

To view and copy this curl command:

  1. Select Packages in the global navigation to access the Repositories page.
  2. Select your Terraform package repository on this page.
  3. Expand Publishing a package section and use the copy icon at the top-right of the code box to copy this curl command and submit it to publish a package to your Terraform package repository.

This command provides:

  • The specific URL to upload a package to your specific Terraform package repository in Buildkite.
  • The authentication credentials (generated by Buildkite Packages) required to upload packages to your Terraform package repository.

Publish a package

The following curl command (modified accordingly before submitting) describes the process above to publish a package to your Terraform package repository:

curl -X POST https://buildkitepackages.com/api/v1/repos/{org.slug}/{terraform.package.repository.name}/packages.json \
  -u "terraform-package-repository-credentials" \
  -F "package[package_file]=@<path_to_file>"