terraform-provider-opensearch-dashboards

command module
v0.11.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

Terraform logo

Terraform Provider for OpenSearch Dashboards

The Terraform OpenSearch provider is a plugin for Terraform that allows for the full lifecycle management of OpenSearch resources. Manage Kibana saved objects, including dashboards, visualizations, and more. This provider is maintained internally by the MOIA GmbH team.

Examples

All the resources and data sources has one or more examples to give you an idea of how to use this provider to build your own OpenSearch SavedObjects infrastructure.

Development Environment Setup

Requirements

  • Terraform 0.15.0 or newer.
  • Go 1.19 (to build the provider plugin)

Quick Start

If you wish to work on the provider, you'll first need Go installed on your machine (please check the requirements before proceeding).

Note: This project uses Go Modules making it safe to work with it outside your existing GOPATH. The instructions that follow assume a directory in your home directory outside the standard GOPATH (i.e $HOME/development/terraform-providers/).

$ git clone git@github.com:moia-oss/terraform-provider-opensearch-dashboards.git
$ cd terraform-provider-opensearch-dashboards
...

make install will install the needed tools for the provider.

$ make install

To compile the provider, run make release. This will build the provider and put the provider binary in the ./bin directory. The provider will be compiled for different supported architectures and operation systems (check release config for supported OSs and archs). Please check your system before executing the provider locally.

$ make release
...
$ ./bin/terraform-provider-opensearch-dashboards_<version>_<os>_<arch>
...

Testing the Provider

In order to run unit tests, you can run make test.

$ make test

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 the custom-built provider into your plugins' directory, run terraform init to initialize it.

Releasing a new provider version

The release of the provider is done automatically with a GitHub action. The workflow gets triggered if a new tag is created. Tags can be created with the GitHub web UI or the command line.

The release is signed with a GPG key that is stored as a repository secret and in terraform.

Contributing

We really appreciate your help!

To contribute, simply make a PR and a maintainer will review it shortly.

Issues on GitHub are intended to be related to the bugs or feature requests with provider codebase. See Plugin SDK Community and Discuss forum for a list of community resources to ask questions about Terraform.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL