MENU

Fun & Interesting

Demystifying DevOps: Deploy a simple application to AWS with Terraform

Coding with Callie 20 lượt xem 3 weeks ago
Video Not Working? Fix It Now

In this video, we deploy two NGINX servers: one in a public subnet with access to the internet that forwards traffic to the second server that will display a custom HTML page.

To do this, we need to create an admin user; then, as that user, provision the following AWS resources with Terraform:
- A VPC
- 1 public subnet
- 1 private subnet
- An Internet gateway
- A NAT gateway
- A public route table
- A private route table
- A public EC2 instance + security group
- A private EC2 instance + security group
- A bastion host + security group

We've completed this challenge when we:
- CAN SSH into the public EC2 instance and the bastion host
- CANNOT directly SSH into the private EC2 instance
- CAN SSH into the private EC2 instance through the bastion host
- CAN view the custom HTML page when you load the public IP address of the private EC2 instance

Comment