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.
1) What is terraform?
Terraform is infrastructure as code tool that is used to define cloud resources and on-premises resources as configuration files that is understandable by human that can be versioned, reuse and shared. It manages an application’s underlying IT infrastructure through programming. It is written in Go programming language.
2) One example terraform program
provider “github” {
token=”github personal access token XXXXXXX”
}
resource “github_repository” “example” {
name = “example”
description = “My awesome codebase”
visibility = “public”
}
3) List of 5 terraform commands and its use
- Terraform apply – it executes the actions proposed in a terraform plan.
- Terraform plan – creates an execution plan, which let’s us to preview the changes that terraform plans to make to your infrastructure.
- Terraform init – it is used to initialize a working directory containing configuration files.
- Terraform destroy – terminates resources defined in terraform configuration.
- Terraform show – used to provide human readable output from a state or plan file.