[Terraform] AWS – VPC

You can see the power of Terraform when you provision infrastructure in the cloud environment. In this post, we will create VPC and subnets via Terraform step by step.

We will configure

  • VPC
  • 2 Subnets: public and private
  • Internet Gateway
  • NAT Gateway with an elastic IP
  • 2 Route tables: public and private
Continue reading “[Terraform] AWS – VPC”

[Terraform] AWS – EC2 Instance

You can see the power of Terraform when you provision infrastructure in the cloud environment. In this post, we will create an EC2 instance via Terraform step by step.

We are going to configure

  • Security Group: allows HTTP and SSH inbound traffic
  • New EC 2 Instance
    • Install Apache HTTP Server (“httpd“) via “User Data”
Continue reading “[Terraform] AWS – EC2 Instance”