DevOps(Day 91) : Create a Route table and security group using terraform - (entire infrastructure through Terraform - part5)
TABLE OF CONTENTS
AIM
Subtasks:
Task 5: Create a Route table
Task 6: Create a security group
AIM
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.
Subtasks:
Task 5: Create a Route table
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.
Create a routetable.tf file to define the route table configuration in association with the public subnet.
Use terraform apply to create the route table.
We can verify the route table in AWS console along with the public subnet which is associated in the subnet association section.
Task 6: Create a security group
- Security group: Allow SSH access and HTTP access from anywhere
Thanks for reading my article. Have a nice day.
Comments
Post a Comment