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 2b3855d5e2
terraform: make all actions cancellable in context
12 years ago
builtin main: fix the help output to show up 12 years ago
command command: validate configuration, test for it 12 years ago
config terraform: Context introduction 12 years ago
depgraph Fix various order-dependent tests 12 years ago
digraph digraph: fix flaky test 12 years ago
flatmap flatmap: remove Map for now 12 years ago
helper terraform: Context introduction 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 terraform: make all actions cancellable in context 12 years ago
test-fixtures main: add main config 12 years ago
.gitignore Add the state to the gitignore 12 years ago
Makefile Add testrace 12 years ago
README.md update readme 12 years ago
TODO.md update TODO 12 years ago
commands.go command/apply: Ctrl-C works 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 terraform: diff hooks 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
...