Terraform
- is a type of Infrastructure as Code (IaC)
- can be used to manage popular services such as: AWS, Google Cloud, Azure, etc
- https://www.terraform.io/
Terraform - Installation
homebrew
1. brew install it
brew install terraform2. verify terraform was installed
terraform —-version
Terraform - Concepts
Terraform uses Hashicorp Configuration Language (HCL) to express infrastructure
resource "aws_instance" "hello" {
ami = "<ami-id>"
instance_type = "t2.micro"
}
In this example, we are declaring a terraform resource of type “aws_instance” with name “hello”
Terraform - Introduction
Terraform has three main stages:
terraform init
terraform plan
terraform apply