/terraform-provider-elasticcloud

Terraform provider for Elastic Cloud

Primary LanguageGoMozilla Public License 2.0MPL-2.0

Elastic Cloud Terraform Provider

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.

Support, Bugs, Feature Requests

This Terraform Provider is built by the community. Please report any support request, bug or feature request using the Issues section of this repository.

Requirements

Using the provider

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.

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
$ go install

Adding Dependencies

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.

Developing the Provider

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.

Running the acceptance test

Acceptance tests are not yet available for this module.