Merge pull request #21 from tim-goto/main

feat: add github connection, scopeconfig and scope
tree: bef008022157a9adbed199a4646cb7227d5fb4a2
  1. .github/
  2. docker_compose/
  3. docs/
  4. examples/
  5. internal/
  6. tools/
  7. .envrc
  8. .gitignore
  9. .golangci.yml
  10. .goreleaser.yml
  11. asf.yaml
  12. CHANGELOG.md
  13. GNUmakefile
  14. go.mod
  15. go.sum
  16. LICENSE
  17. main.go
  18. README.md
  19. shell.nix
  20. terraform-registry-manifest.json
README.md

Terraform Provider Scaffolding (Terraform Plugin Framework)

This template repository is built on the Terraform Plugin Framework. The template repository built on the Terraform Plugin SDK can be found at terraform-provider-scaffolding. See Which SDK Should I Use? in the Terraform documentation for additional information.

Requirements

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go 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 provided examples in the examples/ directory.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

To generate or update documentation, run make generate.

In order to run the full suite of Acceptance tests, do the following:

make testacc

This will start the backend service when called for the first time. If you ever want to restart the backend service, simply remove the file docker_compose/token.txt before you run the make target.