Terraform & Devops
  • Home
  • TERRAFORM CERTIFCATION
  • AWS-CLOUD
  • GCP-CLOUD
  • ANSIBLE
  • KUBERNETES
  • Aboutus
  • Contact Us
No Result
View All Result
  • Home
  • TERRAFORM CERTIFCATION
  • AWS-CLOUD
  • GCP-CLOUD
  • ANSIBLE
  • KUBERNETES
  • Aboutus
  • Contact Us
No Result
View All Result
Terraform & Devops
No Result
View All Result
Home TERRAFORM CERTIFCATION

connecting Terraform Cloud to local machine

by abubakarsiddiq858
January 4, 2021
in TERRAFORM CERTIFCATION
139 9
0
connecting Terraform Cloud to local machine
169
SHARES
2.1k
VIEWS
Share on FacebookShare on Twitter

This Article Demonstrates How to connect a local Machine where we   Installed Terraform and we connect it to Terraform cloud where resources will be Created at Terraform Cloud , and Logs will be Streamed at Local Machine.

purpose:

logs of terraform plan and terrafrom apply can be streamed to local and output can be vieed at cloud

procedure:

Login to app.Terraform.io  and Create an organization

  • create a workspace
  • configure variables

create a file myfile.tf on our local machine

terraform {

  required_version = "~> 0.12"

  backend "remote" {

    organization = "rohit777"




    workspaces {

      name = "myworkspace777"

    }

  }

}

resource aws_instance "myec2" {

  ami           = "ami-096fda3c22c1c990a"

  instance_type = "t2.large"

}

Create a file backend.hcl on our Local machine

workspaces { name = “myworkspace777” }

hostname  =   “app.terraform.io”

organization = “rohit777”

do terraform init on our Local Machine

terraform init -backend-config=”f.tf”

Execute   terraform login  command

The Screen shows as below

Resources can be seen Created at Terraform cloud

Goto  Terraform  cloud

And do confirm  apply

The Screen will be as shown below

That’s Cool we have successfully connected our Terraform Cloud to Local amchine where we can see Resources are created at Terraform cloud and Logs can be seen at Local machine where Terraform is Installed

Tags: Business TipsGold PriceInvestment LossSillicon ValleyUnited StatedWall Street
  • Trending
  • Comments
  • Latest
Terraform – Modules

Terraform – Modules

January 4, 2021
Terraform Life cycle

Terraform Life cycle

January 4, 2021
Terraform – Functions

Terraform – Functions

January 4, 2021
Terraform installation

Terraform installation

January 4, 2021
Implementing VPC Architecture using Terraform

Implementing VPC Architecture using Terraform

0
Local and dynamic blocks:

Local and dynamic blocks:

0
Terraform  Provisioners

Terraform Provisioners

0
Managing Terraform States in Remote Locations:

Managing Terraform States in Remote Locations:

0
Implementing VPC Architecture using Terraform

Implementing VPC Architecture using Terraform

August 28, 2021
Build a CICD Pipeline with Git Jenkins Terraform

Build a CICD Pipeline with Git Jenkins Terraform

May 24, 2021

Configuring VPC Components in AWS

February 8, 2021

Introduction to AWS

February 7, 2021

Recent News

Implementing VPC Architecture using Terraform

Implementing VPC Architecture using Terraform

August 28, 2021
Build a CICD Pipeline with Git Jenkins Terraform

Build a CICD Pipeline with Git Jenkins Terraform

May 24, 2021

Categories

  • Uncategorized
  • AWS-CLOUD
  • TERRAFORM CERTIFCATION

Site Navigation

  • Home
  • Advertisement
  • Contact Us
  • Privacy & Policy
  • Other Links
Terraform & Devops

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.

No Result
View All Result
  • Home
  • TERRAFORM CERTIFCATION
  • AWS-CLOUD
  • GCP-CLOUD
  • ANSIBLE
  • KUBERNETES
  • Aboutus
  • Contact Us

© 2021 TheTerraform.in - All Rights Reserved.
Designed By TenXinfotech.

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist