terraformctl

command module
v0.0.0-...-bed0df6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

Terraformctl

Manage and mutate infrastructure with Terraform by running it in Kubernetes as a controller!

About

This is an example of infrastructure as cloud native software. This repository is not intended to be used in production, but rather offers a starting point for people to start looking at what it would take to run infrastructure as software.

More information can be found on my blog here

Running

Environmental Variables

TERRAFORMCTL_HOSTNAME can be used to override the hostname to use to connect to a listening gRPC server. TERRAFORMCTL_PORT can be used to override the port to use to connect to a listening gRPC server.

Developing

Building and pushing

Sorry but I hard coded everything for a demo.. be ready to hack the Makefile (please open a PR if you want!)

make build push deploy

This also assumes you have Kubernetes up and running already.

Working with the gRPC definitions

You will need to have protoc and grpc installed.

go get google.golang.org/grpc
go get -u github.com/golang/protobuf/protoc-gen-go

Now you can make changes to service/terraformctl.proto and run the following command to update the plugin.

make proto

A change to the gRPC might be needed in service/server.go if the new gRPC expects new logic.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package terraformctl is a generated protocol buffer package.
Package terraformctl is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL