This repository is built on the Terraform Plugin Framework.
GQLdenring is a personal project I have developed for learning purposes. It is a Go gqlgen Graphql service that serves data on the popular video game Eldenring. This repo hosts a custom terraform provider that interacts with this service.
This is an educational repo, and is not intended for production use.
- Clone the repository
- Enter the repository directory
- Build the provider using the make
make install
command:
make install
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
.
See the docs
Update ~/.terraformrc to something like:
plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"
provider_installation {
dev_overrides {
"kamsandhu93/gqldenring" = "/Users/YOU/go/bin/"
}
direct{}
}
Make code changes.
Install the provider binary to go bin
make install
Run acceptance tests (currently broke due to hashicorp/terraform-plugin-sdk#1171)
make testacc
Run example terraform (requires gqldenring server to be running)
make apply