Terraform (Infrastructure as code. IaC)
-
This is tool/script for building, changing the infrastructure. Terraform
was developed by HashiCorp.
Prior to Terraform, admin has to manually go on AWS console, click button to create EC2, other resources. Terraform solves it by defining infrastructure as code(IaC)
With 1 terraform file we can create all infrastructure
1. VPC, Subnets, Internet Gateway
2. Security Groups
3. EC2 Instance
4. Load Balancer (ALB)
5. ACM Certificate
6. Route 53 DNS
7. Auto Scaling Group
8. S3 buckets
...and more
Advantages:
1. Terraform works with any cloud provider (AWS, Google Cloud, Azure, Kubernetes, Alibaba, etc.)
2. Modular. We can package code into Modules to reuse common patterns