Terraform provider for CircleCI
CircleCI Terraform provider
- Website: https://www.terraform.io

- Mailing list: Google Groups
Requirements
- [Terraform][terraform] 0.12.x (it has also been tested with version 0.11+)
- [Go][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][release page] and follow the instructions to [install third party plugins][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][third party plugins].
After placing it into your plugins directory, run terraform init to initialize it.
Example:
provider "circleci" {
apitoken = "${file("circlecitoken")}"
vcs_type = "github"
organization = "my_org"
}
resource "circlecienvironmentvariable" "from_terraform" { project = "mySuperProject" name = "from_terraform" value = "the secret" }
[install plugin]: https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin [third party plugins]: https://www.terraform.io/docs/configuration/providers.html#third-party-plugins [terraform]: https://www.terraform.io/downloads.html [go]: https://golang.org/doc/install [release page]: https://github.com/mrolla/terraform-provider-circleci/releases