Skip to content

kamsandhu93/terraform-provider-gqldenring

Repository files navigation

GQLdenring Terraform Provider

This repository is built on the Terraform Plugin Framework.

What is this?

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.

Requirements

Building The Provider

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

Adding Dependencies

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.

Using the provider

See the docs

Developing the provider

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published