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 an open source “Infrastructure as Code” tool. It is used by DevOps teams to automate infrastructure tasks. It is used to define and provision the complete infrastructure using an easy-to-learn declarative language. It is an infrastructure provisioning tool where you can store your cloud infrastructure setup as codes.
2)example terraform program
provider “github” {
token = “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”
owner = “vunnava-reshma”
}
resource “github_repository” “example” {
name = “reshma”
description = “My awesome codebase “
visibility = “public”
}
3)List of 5 terraform commands and its use
- terraform init –> It initializes a working directory containing terraform configuration files
- terraform apply – >executes the actions.
- terraform show –> is used to provide human readable output from state file.
- terraform plan –> it evaluates a terraform configuration to determine the desired state of all the resources it declares. Which lets to preview the changes that terraform plans to make to your infrastructure.
- terraform destroy –>it is a convenient way to destroy all remote objects managed by particular terraform configuration
- terraform get –>Downloads and updates modules defined in the root module..