Taskhawk is a replacement for celery that works on AWS SQS/SNS, while keeping things pretty simple and straight forward.
Taskhawk Terraform Generator is a CLI utility that makes the process of managing Taskhawk Terraform modules easier by abstracting away details about Terraform.
Download the latest version of the release from Github releases - it's distributed as a zip containing a Go binary file.
Configuration is specified as a JSON file. Run
./taskhawk-terraform-generator config-file-structureto get the sample configuration file.
Advanced usage: The config may contain references to other terraform resources, as long as they resolve to an actual resource at runtime.
Run
./taskhawk-terraform-generator apply-config <config file path>to create Terraform modules. The module is named taskhawk by default in the current directory.
Re-run on any changes.
Install go1.11
Assuming that you have go installed, set up your environment:
$ # in a location NOT in your GOPATH:
$ git checkout github.com/Automatic/taskhawk-terraform-generator
$ cd taskhawk-terraform-generator
$ go get -mod=readonly -v ./...
$ GO111MODULE=off go get github.com/go-bindata/go-bindata/...
$ GO111MODULE=off go get -u github.com/client9/misspell/cmd/misspell
$ GO111MODULE=off go get -u honnef.co/go/tools/cmd/staticcheckYou can run tests in using make test. By default, it will run all of the unit and functional tests, but you can
also run specific tests directly using go test:
$ go test ./...
$ go test -run TestGenerate ./...make clean buildUpload to Github and attach the zip files created in above step.