Utility to generate terraform configuration for gocd
$ brew tap drewsonne/tap
$ brew install gocd-tf-generate
Download the latest release from https://github.com/drewsonne/go-gocd/releases,
and place the binary in your $PATH
.
$ gocd
$ gocd list-agents
Each generated terraform config has an import statement prefix with "CMD". You can extract all the import commands with:
$ grep -r CMD . | sed 's/^.*CMD: //p'
in the directory you are generating your configs in.