Resources to be created inside public subnets

As per our architecture we need to do the following our public subnets:

  1. Upload SSH keys to EC2 key pairs
  2. Create 2 Bastion EC2 Instances along with Security Groups
  3. Create an Application Load Balancer (ALB)
  4. Create an Auto Scaling Group (ASG)

Let us create some Terraform configuration code to accomplish these tasks.

Upload SSH key to EC2 key pairs

In order to be able to ssh Learn More