Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
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