Skip to content

Example usage of protoc-gen-gotf plugin

License

Notifications You must be signed in to change notification settings

travix/gotf-example

Repository files navigation

Example provider

This is an example provider generated from protoc-gen-gotf.

Requirements

Install buf.build or protoc

To use protoc instead of buf, do the following before running run.sh

  • Comment buf commands and uncomment protoc commands in gen.sh
  • Copy gotf.proto to root of repository

Demo Demo

Execute run.sh, it will

  • Generate protobuf, gRPC files
  • Generate terraform provider Go code
  • Compile and install terraform provider
  • Start gRPC server
  • init, validate, plan and apply terraform from tfscript directory

At the end of the run, 1 existing user, group and 1 new user, group will be created using terraform.

Provider and executors

provider package contains the provider implementation, it uses executors that communicate with example-server

About

Example usage of protoc-gen-gotf plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published