Terraform

Buddy is an official technological partner of Terraform. You can find the full documentation of our provider in the HashiCorp Terraform Registry.

The Terraform Buddy provider enables developers to automate creating and managing resources in Buddy. It is based on Buddy's REST API and can be used with both cloud and on-premises versions of Buddy.

Configuration

Automation with Terraform requires a personal API token or a token created with an OAuth application.

If you use Terraform to manage resources on the on-premises version, you also need to provide the URL to the API, and check the 'insecure' flag if your instance of Buddy doesn't have a signed SSL certificate:

provider "buddy" { 
    token = var.buddy_token
    base_url = IP_STANDALONE/api
}

The provider requires Buddy at least in version 2.5.0.

Usage

This is the current list of Buddy resources that can be managed with Terraform:

workspace
profile
profile_email
profile_public_key
member
group
group_member
project
project_member
project_group
variable
variable_ssh_key
webhook
integration
pipeline

Get Started

Sign up for free and deploy your project in less than 10 minutes.