terraform-provider-redpanda

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Redpanda Terraform Provider

The Redpanda terraform provider is a Terraform plugin that allows you to create and manage resources on Redpanda Cloud.

Getting started

To add the Redpanda provider:

terraform {
  required_providers {
    redpanda = {
      source = "redpanda-data/redpanda"
    }
  }
}
Authentication

Client credentials for authentication can be provided as:

Static credentials:

provider "redpanda" {
  client_id     = "<CLIENT_ID>"
  client_secret = "<CLIENT_SECRET>"
}

or

Environment variables:

REDPANDA_CLIENT_ID=<CLIENT_ID>
REDPANDA_CLIENT_SECRET=<CLIENT_SECRET>

Developing the provider

Requirements
Building the provider

After building the provider (go build), you may override the plugin with your locally built provider.

Follow Terraform documentation on dev overrides for provider developers.

Running Acceptance Test

The following environment variables are required to run the acceptance tests:

# For acceptance test
TF_ACC=true

  # For long-running cluster tests
RUN_CLUSTER_TESTS=true

  # For datasource tests, against existing cluster
TEST_AGAINST_EXISTING_CLUSTER=true
CLUSTER_ID=<CLUSTER_ID>

Generating Docs

To generate docs run the following commands

go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@latest
tfplugindocs

Support

To raise issues, questions, or interact with the community:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto
Package redpanda contains the implementation of the Terraform Provider framework interface for Redpanda.
Package redpanda contains the implementation of the Terraform Provider framework interface for Redpanda.
clients
Package clients provides the CloudV2 clients used by the Redpanda terraform provider and the generated resources.
Package clients provides the CloudV2 clients used by the Redpanda terraform provider and the generated resources.
mocks
Package mocks provides the mocked resources and its clients for testing.
Package mocks provides the mocked resources and its clients for testing.
models
Package models contains all the Terraform schema representations of the resources created by the Redpanda Terraform provider.
Package models contains all the Terraform schema representations of the resources created by the Redpanda Terraform provider.
resources/acl
Package acl contains the implementation of the ACL resource following the Terraform framework interfaces.
Package acl contains the implementation of the ACL resource following the Terraform framework interfaces.
resources/cluster
Package cluster contains the implementation of the Cluster resource following the Terraform framework interfaces.
Package cluster contains the implementation of the Cluster resource following the Terraform framework interfaces.
resources/namespace
Package namespace contains the implementation of the Namespace resource following the Terraform framework interfaces.
Package namespace contains the implementation of the Namespace resource following the Terraform framework interfaces.
resources/network
Package network contains the implementation of the Network resource following the Terraform framework interfaces.
Package network contains the implementation of the Network resource following the Terraform framework interfaces.
resources/topic
Package topic contains the implementation of the Topic resource following the Terraform framework interfaces.
Package topic contains the implementation of the Topic resource following the Terraform framework interfaces.
resources/user
Package user contains the implementation of the User resource following the Terraform framework interfaces.
Package user contains the implementation of the User resource following the Terraform framework interfaces.
tests
Package tests includes the acceptance tests for the Redpanda Terraform Provider.
Package tests includes the acceptance tests for the Redpanda Terraform Provider.
utils
Package utils contains multiple utility functions used across the Redpanda's terraform codebase
Package utils contains multiple utility functions used across the Redpanda's terraform codebase

Jump to

Keyboard shortcuts

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