Terraform Day 1 17 Oct 2023 Tutorials

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now
What is Terraform?
============================
	Tool for IAAC
		infra as a code
		Coding for Infra
	From Hashicorp
	Writtn in Golang
	Release
		terraform - cli  - Free n OS
		cloud - web  - paid
		enterprise - web - paid
	1.6.1
	https://developer.hashicorp.com/terraform/downloads

Whats in Infra?
https://registry.terraform.io/browse/providers

Why We need it?
===============================================
3599 Platforms ----> 3599 CODING standard

ONE CODING STANADARD N SPEC for everything.
======================================

How it works?
=======================================================
Step 1 - Install terraform		DONE

Step 2 - Install Providers		DONE

==========================================
How to write Terraform code?
1st - 
.tf

2nd - 
		ONE DIR
	===============================
	one.tf two.tf three.tf
	======================
	ONE terraform project



Step 3 - Write Code

Collection of Resources and its attributes


resources1	== ec2 instance
	attributes1
	attributes2
	attributes3
	attributes3
resources2	== key pair
	attributes1
	attributes2
	attributes3
	attributes3	
resources3	== sec group
	attributes1
	attributes2
	attributes3
	attributes3


resource "aws_instance" "web" {
  ami           = ami-0f5ee92e2d63afc18
  instance_type = "t3.micro"

  tags = {
    Name = "HelloWorld"
  }
}




Step 4 - terraform apply | destory

terraform validate
terraform plan 

Step 5 - terraform show | output

terraform init
cls
terraform init
cls
terraform providers
terraform validate
terraform plan
cls
terraform plan
terraform apply
terraform show
cls
terraform apply --auto-approve
terraform destroy
doskey /h








Subscribe
Notify of
guest

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

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