DevOps(Day 91) : Create a Route table and security group using terraform - (entire infrastructure through Terraform - part5)

 

  • AIM

  • Subtasks:

    • Task 5: Create a Route table

    • Task 6: Create a security group

Build Your Own AWS Infrastructure with Ease using Infrastructure as Code (IaC) Techniques

Welcome back to our Terraform journey.

In the previous tasks, you have learned about the basics of Terraform, its configuration file, and creating an EC2 instance using Terraform. Today, we will explore more about Terraform and create multiple resources.

  • Create a route table for the public subnet and associate it with the public subnet. This route table should have a route to the Internet Gateway.

    1. Create a routetable.tf file to define the route table configuration in association with the public subnet.

    2. Use terraform apply to create the route table.

    3. We can verify the route table in AWS console along with the public subnet which is associated in the subnet association section.

  • Security group: Allow SSH access and HTTP access from anywhere

Thanks for reading my article. Have a nice day.

Comments

Popular posts from this blog

DevOps(Day-97): Meta-Arguments in Terraform

DevOps(Day-95): Auto Scaling with Terraform

DevOps (Day-1) Introduction