Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicholasjackson/waypoint-plugin-tfc

Waypoint Plugin to interact with Terraform Cloud
https://github.com/nicholasjackson/waypoint-plugin-tfc

Last synced: 23 days ago
JSON representation

Waypoint Plugin to interact with Terraform Cloud

Awesome Lists containing this project

README

        

# Waypoint Plugin Template

This folder contains an example plugin structure which can be used when building your own plugins.

## Steps

1. To scaffold a new plugin use the `./clone.sh` script passing the destination folder and the Go package
for your new plugin as parameters

```shell
./clone.sh ../destination_folder github.com/myorg/mypackage
```

2. You can then run the Makefile to compile the new plugin

```shell
cd ../destination_folder

make
```

```shell
Build Protos
protoc -I . --go_out=plugins=grpc:. --go_opt=paths=source_relative ./builder/output.proto
protoc -I . --go_out=plugins=grpc:. --go_opt=paths=source_relative ./registry/output.proto
protoc -I . --go_out=plugins=grpc:. --go_opt=paths=source_relative ./platform/output.proto
protoc -I . --go_out=plugins=grpc:. --go_opt=paths=source_relative ./release/output.proto

Compile Plugin
go build -o ./bin/waypoint-plugin-template ./main.go
```