- Clone the repository
- Enter the repository directory
- Build the provider using the following
Makefile
command:
make dep
make build
- The provider binary will be available in the
bin
directory
This provider uses Go modules. Please see the Go documentation for the most up-to-date information about using Go modules.
To add a new dependency github.com/author/dependency
to your Terraform provider:
go get github.com/author/dependency
go mod tidy
Then commit the changes to go.mod
and go.sum
.
If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).
To compile the provider, see Building The Provider.
To add example docs, add the correspond .tf
files to the examples
directory. These should be added for every new data source and resource.
To run terraform with the provider, create a .terraformrc
file in your home directory (~
) with the following content to override the provider installation with the local build:
provider_installation {
dev_overrides {
"registry.terraform.io/astronomer/astro" = "~/terraform-provider-astro/bin" # Your path to the provider binary
}
direct {}
}
Submit pull requests, report issues, or suggest improvements on the GitHub repository. See CONTRIBUTING.md for more.