Skip to content

Demo terraform provider and service described in Sept 2019 meetup

Notifications You must be signed in to change notification settings

billtrust/meetup-terraform-provider

Repository files navigation

Meetup Terraform provider

Welcome! This repo contains the source code and compilation/utilization instructions for the custom terraform provider described in Billtrust's 09/23/2019 tech meetup. In here you can find a simple NodeJS server that supports the basic CRUD operations and a terraform provider that interacts with said service, along with a Dockerfile to be able compile and run the code.

Slides

The slides for the presentation can be found in the slides folder. Please note that they are /pptx, so PowerPoint or a compatible tool is required.

Build

A Dockerfile is provider. All further instructions assume the image was built using the tag meetup-tf-provider

docker build -t meetup-tf-provider -f Dockerfile .

Server

The terraform provider communicates with a custom made server written in NodeJS. To run it, execute the following command:

docker run -p 3000:3000 meetup-tf-provider

Provider

The provider requires Go to be installed to be able to compile it. Go is included in the Dockerfile, so to compile the provider, just run the following:

docker run -v $(pwd)/terraform-provider-btmascot/bin:/root/go/src/github.com/billtrust/meetup-terraform-provider/terraform-provider-btmascot/bin -it --entrypoint /bin/bash meetup-tf-provider /scripts/build-provider.sh

You'll have your compiled terraform provider in the ./terraform-provider-btmascot/bin folder, which you'll have to copy to the proper folder following the instructions here

Contributing

To add fixes or features, just create a PR. No strong enforcement of standars is implemented as of yet, just keep it readable and simple.

About

Demo terraform provider and service described in Sept 2019 meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published