Terraform Assingment

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..
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