About Terraform by Katte Jahnavi
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
What is terraform?
Terraform is an infrastructure as code tool that lets you define both cloud and resources in human-readable configuration files that you can version, reuse, and share which enables you to safely and predictably create, change, and improve infrastructure.. Terraform supports a number of cloud infrastructure providers such as AWS, microsoft azure,IBM Cloud and many more.
One example for terraform program:
provider “aws” {
region = “us-west-1”
}
resource “aws instance” myec2″ {
ami = “ami-12345qwert”
instance_type = “t2.micro”
}
List of 5 terraform commands and its use:
Terraform –version : Shows terraform version installed
terraform init : Initialize a working directory
Terraform init -input=true : Ask for input if necessary
terraform init -lock=false : Disable locking of state files during state-related operations
terraform get : downloads and update modules mentioned in the root module