This is the repository for the Elastic Cloud Terraform Provider, which allows one to use Terraform with Elastic's SaaS offering, Elastic Cloud. Learn more about Elastic Cloud at https://www.elastic.co/cloud/
For general information about Terraform, visit the official website and the GitHub project page.
This Terraform Provider is built by the community. Please report any support request, bug or feature request using the Issues section of this repository.
To use a released provider in your Terraform environment, run terraform init
and Terraform will automatically install the provider. To specify a particular provider version when installing released providers, see the Terraform documentation on provider versioning
.
To instead use a custom-built provider in your Terraform environment (e.g. the provider binary from the build instructions above), follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init
to initialize it.
For either installation method, documentation about the provider specific configuration options can be found on the provider's website.
- Clone the repository
- Enter the repository directory
- Build the provider using the Go
install
command:
$ go install
This provider uses Go modules. Please see the Go documentation for the most up to date information about using Go modules.
To add a new dependency github.com/author/dependency
to your Terraform provider:
go get github.com/author/dependency
go mod tidy
Then commit the changes to go.mod
and go.sum
.
If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).
To compile the provider, run go install
. This will build the provider and put the provider binary in the $GOPATH/bin
directory.
Acceptance tests are not yet available for this module.