Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 860 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 860 Bytes

Terraform Provider Wrapper

This allows users to wrap a Terraform Provider plugin and inject custom logging and auditing on operations at per Resource level.

Build and Test

Make sure you project is under $GOPATH.

$ go build -o <target> ./cmd/aws

The <target> here should follow Terraform plugin naming convention. In other word, it should be terraform-provider-aws_vX.Y.Z.

Then, put the built plugin to the third party plugins directory (i.e., .terraform/plugins/).

$ mkdir -p ~/.terraform/plugins/
$ cp <target> ~/.terraform/plugins/

Then, run terraform init to pick up the new plugin.

$ cd <config_dir>
$ terraform init -upgrade