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 a provisioning declarative tool that based on Infrastructure as a Code Paradigm. It is written in Golang. It is a open source. Owned by Hashicorp company. It is a multipurpose composition tool to composes multiple tiers (SaaS/PaaS/IaaS) and a plugin-based architecture model.
2)One example terraform program
using github as a provider
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 init : this command is used for initializing a working directory containing Terraform configuration files
- terraform plan : show changes required for current configuration
- terraform apply: create or update infrastructure/resource.
- terraform show: show the current state.
- terraform destroy: destroy previously created resources/infrastructure.