Infrastructure as a code is all about provisioning, managing, orchestrating and maintaining your infrastructure with code. All you have to do is to write code that does the above jobs. We have already been using Chef, Ansible or puppet to automate the provisioning of infrastructure. Terraform also starts with the same principle “infrastructure as a code” but focuses more on infrastructure automation itself. We can define our whole infrastructure ( instances, volumes, networking etc ) and terraform will take care of building this for us.
Installation
Installing terraform is quite easy. Terraform comes as a zip package. Go to here and download the package that suits your Machine.
Unzip and run the “terraform” and if we see something like the below output we are good to go
jagadishfirstTemplate$Sun Sep 30@ terraform
Usage: terraform [--version] [--help] <command> [args]
The available commands for execution are listed below.
The most common, useful commands are shown first, followed by
less common or more advanced commands. If you're just getting
started with Terraform, stick with the common commands. For the
other commands, please read the help and docs before usage.
Common commands:
apply Builds or changes infrastructure
console Interactive console for Terraform interpolations **********
The available commands for execution are listed below.
The most common, useful commands are shown first, followed by
less common or more advanced commands. If you're just getting
started with Terraform, stick with the common commands. For the
other commands, please read the help and docs before usage.
Common commands:
apply Builds or changes infrastructure
console Interactive console for Terraform interpolations **********
No comments :
Post a Comment