This repository contains terraform-provider-cockroach, the
Terraform provider
for the CockroachDB Cloud API. The provider code lives in internal/provider,
with a mocked API client in mock used by integration tests.
- Development setup, debugging, and testing: DEVELOPMENT.md
- Release process: RELEASE.md
- User-facing overview and examples: README.md and
examples/
make install— build the provider binary and copy it to your pathmake generate— regenerate the docs underdocs/make testacc— run acceptance tests against the live CockroachDB Cloud API (requiresCOCKROACH_API_KEY; creates real resources)
- The files under
docs/are generated. Don't edit them by hand — edit theDescription/MarkdownDescriptionfields in the resource schemas and runmake generate. - Changes should be accompanied by an entry under
[Unreleased]inCHANGELOG.md. - Each resource and data source needs both integration tests (mocked API) and acceptance tests (live API). See the Testing section of DEVELOPMENT.md for details.