Skip to main content

Posts

Showing posts from July, 2018

Getting started with Terraform

What is Terraform Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently using code written in configuration files. It creates an execution plan before actually executing it and also maintains a resource graph and versions the current state of the infrastructure and applies only the changes when you run it again after making changes in the configuration files. Terraform code is written in a declarative language called HCL (HashiCorp Configuration Language). The HCL code goes into files with extension .tf. So far terraform doesn't support arrangemnet of code into folders. So all your .ts files go directly in the root level folder. The general syntax of terraform resource is: resource "PROVIDER_TYPE" "NAME" { [CONFIG ...] } We will discuss later, what is a resource and what this syntax mean. Here I have added it to demonstrate that how declarative the language is. Which cloud It supports multiple cloud provide