No description
  • Go 97.4%
  • Makefile 0.9%
  • Shell 0.9%
  • HTML 0.8%
Find a file
2020-07-20 10:16:05 +01:00
examples Remove "private" from example readme (#74) 2020-07-20 10:14:21 +01:00
launchdarkly Prepare 1.3.2 release (#29) 2020-05-29 14:17:25 +01:00
scripts Update makefile to GNUmakefile (#10) 2019-08-30 12:24:36 -07:00
vendor Prepare 1.3.2 release (#29) 2020-05-29 14:17:25 +01:00
website prepare 1.3.0 release (#25) 2020-05-05 11:30:22 +01:00
.gitignore Prepare 1.3.2 release (#29) 2020-05-29 14:17:25 +01:00
.travis.yml Pre-submission cleanup (#31) 2019-09-30 14:09:34 -07:00
CHANGELOG.md Cleanup after v1.3.2 release 2020-05-29 13:34:58 +00:00
GNUmakefile Update makefile to GNUmakefile (#10) 2019-08-30 12:24:36 -07:00
go.mod Prepare 1.3.2 release (#29) 2020-05-29 14:17:25 +01:00
go.sum Prepare 1.3.2 release (#29) 2020-05-29 14:17:25 +01:00
LICENSE add/update CHANGELOG, LICENSE, and README (#13) 2019-09-09 09:30:19 -07:00
main.go update import path 2019-10-18 14:01:52 -07:00
README.md update readme (#32) 2019-09-30 14:14:00 -07:00
versions.tf Upgrade terraform to 0.12 (#11) 2019-09-05 16:18:41 -07:00

Terraform Provider

Requirements

  • Terraform 0.12.x
  • Go 1.11+ (to build the provider plugin)

Building The Provider


Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-launchdarkly

$ git clone git@github.com:terraform-providers/terraform-provider-launchdarkly $GOPATH/src/github.com/terraform-providers/terraform-provider-launchdarkly

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-launchdarkly
$ make build

Using the provider


If you're building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

Further usage documentation is available on the Terraform website.

Developing the Provider


If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-launchdarkly
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc