MENU

Fun & Interesting

Demystifying DevOps: Simple EC2 Deployment with Terraform (Part 7)

Coding with Callie 11 1 month ago
Video Not Working? Fix It Now

In this video, we add our Terraform providers and get an IP address. This video is part of a series where 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