cudoventures / terraform-provider-cudo

Terraform provider for Cudo Compute

Home Page:https://registry.terraform.io/providers/CudoVentures/cudo/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cudo Compute Terraform provider

This repository is built on the Terraform Plugin Framework.

Requirements

Building the provider

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

Using the provider

See docs directory

Developing the provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

The Cudo API client and provider docs are generated from swagger/public.swagger.json by running make codegen.

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

To run locally add the code below to ~/.terraformrc

provider_installation {

  dev_overrides {
      "cudoventures/cudo" = "/home/<USER-DIR>/go/bin"
  }

  # For all other providers, install them directly from their origin provider
  # registries as normal. If you omit this, Terraform will _only_ use
  # the dev_overrides block, and so no other providers will be available.
  direct {}
}

The [Vercel terraform provider](https://github.com/vercel/terraform-provider-vercel) is a useful reference as it uses the same plugin framework.

Documentation

To generate or update documentation, run make docs.

or to change the name:

go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --rendered-provider-name Cudo

Testing

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

make testacc

Releases

To make a release:

git tag v0.2.1
git push origin v0.2.1

About

Terraform provider for Cudo Compute

https://registry.terraform.io/providers/CudoVentures/cudo/latest

License:Mozilla Public License 2.0


Languages

Language:Go 99.5%Language:Makefile 0.5%