Day 4 : Assignment – by Gorsa Lakshmi Niharika

What is Terraform?

HashiCorp Terraform is an infrastructure as code tool that makes us to define both cloud and on-prem resources in human-readable configuration files, It helps us to version, reuse and share. Users defines provider data center infrastructure in declarative configuration language which is known as HashiCorp Configuration Language. It helps engineers to programmatically provision the physical resources an application which can be able to run.

An Example on Github handling by Terraform

resource “github_repository” “example” {

  name        = “example9999999”

  description = “My awesome codebase hey”

  visibility = “public”

}

provider “github” {

token = “xxxxxxx”

owner = “xxxxxxx”

}

Top 5 Commands:

-> terraform init – It initializes a working directory containing terraform configuration files

-> 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 apply – executes the actions.

-> terraform show – is used to provide human readable output from state file.

-> terraform destroy – is a convenient way to destroy all remote objects managed by particular terraform configuration.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x