terraform-provider-katapult

command module
v0.0.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 2 Imported by: 0

README

Katapult Terraform Provider

Status

This provider is still in the early stages of development. As we add and expand functionality to support more of Katapult's features, we will do our best to avoid breaking changes. If breaking changes are required, they will be clearly listed in the release notes and changelog.

Requirements

  • Terraform 0.14.x
  • Go 1.16 (to build the provider plugin)

Build the Provider

Clone the provider to your machine, for example: ~/Projects/terraform-provider-katapult

git clone git@github.com:krystal/terraform-provider-katapult.git ~/Projects/terraform-provider-katapult

Enter the provider directory and build the provider:

cd ~/Projects/terraform-provider-katapult
make build

Developing the Provider

To work on the provider, you will first need Go (1.16 or later is required), and also Terraform 0.14.x or later for acceptance tests.

Make Targets
  • make build — Build provider binary into bin/terraform-provider-katapult
  • make install — Build provider binary, and install it to ~/.terraform.d/plugins/registry.terraform.io/krystal/katapult/{VERSION}/, allowing Terraform to use the custom builds.
  • make test — Run unit tests.
  • make testacc — Run acceptance tests. By default it prevent requests to Katapult's API to create real resources, and instead playback previously record requests. To enable real requests against Katapult, set the VCR environment variable to rec to record requests, or off to disable the VCR request recording/playback all together.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
hashcode
Package hashcode is borrowed from the deprecated hashcode helper package from terraform-plugin-sdk v1.x: https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/helper/hashcode
Package hashcode is borrowed from the deprecated hashcode helper package from terraform-plugin-sdk v1.x: https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/helper/hashcode
provider
Package provider is a internal package containing the Katapult Terraform provider.
Package provider is a internal package containing the Katapult Terraform provider.

Jump to

Keyboard shortcuts

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