Terraform
Infrastructure as a Code.
Its Cloud agnostic - Open Source provisioning tool
It's written in the Go language.
Speed and Simplicity
Team Collaboration
Error Reduction
Disaster Recovery
Enhanced Security
Install Terraform CLI
Please make sure AWS Profile is created.
Create Public and Private Keys
Linux / Mac Users
Windows Users
Open PuttyGen and create a Key
Terraform
mkdir tf-aws-ec2-sample
cd tf-aws-ec2-sample
Create main.tf
Copy the contents of main.tf
goto terminal
terraform init
terraform fmt
terraform validate
terraform apply
terraform show
Finally
terraform destroy
Last updated