Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Latest commit

 

History

History
50 lines (35 loc) · 1.98 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.98 KB

CircleCI Terraform provider

Build Status Go Report Card

Requirements

  • Terraform 0.12.x (it has also been tested with version 0.11+)
  • Go 1.11+ (to build the provider plugin)

Using the provider

Download a release

Download the latest release for your OS from the release page and follow the instructions to install third party plugins.

Build from sources

To build the project you can use make. This will place a binary in your $GOBIN directory. Copy the binary to the Terraform plugin directory.

After placing it into your plugins directory, run terraform init to initialize it.

Example:

provider "circleci" {
  api_token    = "${file("circleci_token")}"
  vcs_type     = "github"
  organization = "my_org"
}

resource "circleci_environment_variable" "from_terraform" {
  project = "mySuperProject"
  name    = "from_terraform"
  value   = "the secret"
}