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
Mitchell Hashimoto a63125b54f
digraph: more idiomatic writedot api
12 years ago
builtin providers/aws: return proper internet gateway when attach fails 12 years ago
command command/version: use Meta 12 years ago
config config: LoadDir with no matching files errors 12 years ago
depgraph terraform: turn multi-counts into multiple nodes 12 years ago
digraph digraph: more idiomatic writedot api 12 years ago
flatmap flatmap: deterministic tests 12 years ago
helper helper/diff: if attribute is set and also computed, don't mark computed 12 years ago
plugin plugin: Adding support for provisioners 12 years ago
rpc rpc: Cleanup imports 12 years ago
scripts scripts: unix line endings 12 years ago
terraform terraform: don't process outputs when all we did was destroy 12 years ago
test-fixtures main: add main config 12 years ago
.gitignore Add tfplan to gitignore 12 years ago
Makefile testrace won't run acceptance tests 12 years ago
README.md update readme 12 years ago
TODO.md Update TODO 12 years ago
commands.go command/version: use Meta 12 years ago
config.go Setup provisioners for CLI 12 years ago
config_test.go Update config test to handle provisioners 12 years ago
log.go Setup panicwrap 12 years ago
main.go Recognize -version 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
...