This repository is a Terraform provider for Masthead Data.
-
Build the provider:
go mod tidy go install
This will put the provider binary in the
$GOPATH/bindirectory. -
Update the documentation:
make generate
-
Add the following block to your Terraform configuration in
~/.terraformrcto use the provider from your local development environment:provider_installation { dev_overrides { "hashicorp.com/edu/hashicups" = "<PATH>" } # 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 {} }
-
Run the test resources deployment:
terraform -chdir=examples/provider init terraform -chdir=examples/provider plan -var api_token=YOUR_API_TOKEN
For local developement of the Masthead Data client library, you can use the following steps to set up your environment:
-
Build the client by running:
go mod tidy go install
-
Run
make testaccto run the acceptance tests.Note: Acceptance tests create real resources.
We welcome contributions to the Masthead Data Terraform Provider! If you have a bug fix, feature request, or improvement, please open an issue or pull request. Please ensure that your code adheres to the following guidelines:
- Follow the Terraform Provider Development Guidelines.
- Write clear and concise commit messages.
- Add tests for new features or bug fixes.
- Update documentation as needed.
- Ensure that all tests pass before submitting your pull request.
- Please be respectful and constructive in your feedback.
Thank you for contributing to the project!