1.TERRAFORMS word
1.TERRAFORMS word
CF -- aws
ARM --> azure
Create by hashicorp
terraform is generic
create servers, vpc everything mention in this config file and not in
order any order it can create infrastructre for you
It has 2 editions
why we want to use terraform u can use cloud formation? Reason to use
terraform is:
1. Speed
2. Consistency:
when u are trying to create infrastructure manually
if u are creating VPC and while creating u need to mention ur CIDR
block if not it will not allow
we can integrate with ansible and other tools , what ever config files
u created can be used in CF/ARM template
terraform.io
official site
extract it
go to c drive
terraform --version
go to cmd
copy address
Run
sysdm.cpl
terraform --version
it got installed
In cmd
terraform
provider "aws" {
region="us-east-2"
plan --> Kind of blueprint, what ever u want to create using config
file this command shows ypu what ever it will nbe created
say you written access key or security key without any alignment
it will format and put in order
like dev/uat/test/prod
by default we have default work space
import --> ifu created any service manually u can import into
terraform using import command
also create one iam user or any other user security key and access key
provider "aws" {
region="us-east-2"
access_key=""
secret_key=""
}
create newFolder
terraform init
terraform validate
terraform plan
terraform apply
terraform destroy