Terraform

What is terraform?

It is an open source infrastructure as code software tool that allows to programmatically provision the physical resources an application requires to run.

Example

//provider code for github provider

provider “github” {
token = “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”
owner = “Jayesh”
}

//resource code

resource “github_repository” “example” {
name = “test”
description = “test repo”

visibility = “public”
}

5 terraform commands

  • init :Used to initialize provider
  • plan : Used to create a execution plan.
  • apply: It executes the actions proposed in plan commands.
  • show : Used to display the contents of repository
  • destroy : Used to destroy the repository.
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