Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Jack Pearkes d6fa7f2f6d
quiet the make dev task
12 years ago
builtin main: fix the help output to show up 12 years ago
command command/plan: refresh by default 12 years ago
config config: remove some unused test fixtures 12 years ago
depgraph depgraph: add Noun function to get a noun 12 years ago
digraph Import @armon's depgraph/digraph 12 years ago
helper helper/resource: destroy on requiresNew 12 years ago
plugin some comments, package comments 12 years ago
rpc rpc: add Refresh method 12 years ago
scripts scripts: unix line endings 12 years ago
terraform providers/aws: if no reservations, no instance 12 years ago
test-fixtures main: add main config 12 years ago
.gitignore Add the state to the gitignore 12 years ago
Makefile quiet the make dev task 12 years ago
README.md update readme 12 years ago
TODO.md Update TODO.md 12 years ago
commands.go command: plan 12 years ago
config.go main: instantiate the config and set it up 12 years ago
config_test.go main: instantiate the config and set it up 12 years ago
log.go Setup panicwrap 12 years ago
main.go main: fix the help output to show up 12 years ago
panic.go Setup panicwrap 12 years ago
version.go Implement CLI, version command 12 years ago

README.md

Terraform

Terraform is a tool for building and changing infrastructure safetly and efficiently.

Developing Terraform

If you wish to work on Terraform itself or any of its built-in providers, you'll first need Go installed (version 1.2+ is required). Make sure Go is properly installed, including setting up a GOPATH. Make sure Go is compiled with cgo support. You can verify this by running go env and checking that CGOENABLED is set to "1".

Next, install Git, which is needed for some dependencies.

Then, install Gox, which is used as a compilation tool on top of Go:

$ go get -u github.com/mitchellh/gox

Next, clone this repository into $GOPATH/src/github.com/hashicorp/terraform and then just type make. This will compile some dependencies and then run the tests. If this exits with exit status 0, then everything is working!

$ make
...

To compile a development version of Terraform and the built-in plugins, run make dev. This will put Terraform binaries in the bin folder:

$ make dev
...
$ bin/terraform
...

If you're developing a specific package, you can run tests for just that package by specifying the TEST variable. For example below, only terraform package tests will be run.

$ make test TEST=./terraform
...