Resources Block

In Terraform, the “resources” block is not a specific construct like the provider or terraform blocks. Instead, it’s a common terminology used to refer to the section of a Terraform configuration where you define the infrastructure resources what you want to desire.

finally,We created the VPC,IGW and Route Table resources successfully.

  • Here are the outcomes of those. The below screenshot illustrates the resource creation.
  • these are resources that are created.

VPC-virtual private cloud

IGW-internet gateway

Route table

How To Create Route Table In AWS Using Terraform ?

Terraform is a popular IAAC (Infrastructure as a Code) tool used in automation to create, manage, modify, update, and destroy any cloud resources and cloud environment. Terraform supports any cloud provider, including AWS, Microsoft Azure, GCP, Oracle, Alibaba, IBM, Salesforce, etc.

Here, in this guide, I am going to discuss the AWS Route Table first, and I will discuss deeply what Terraform is. After that, I will walk you through different steps to write a Terraform script and execute the scripts. By using these Terraform scripts, we can create our custom route table and associate this route table with the AWS subnet.

Similar Reads

Understanding Of Primary Terminologies

What is the AWS Route Table?...

What is Terraform?

Terraform is an Infrastructure as Code (IaC) tool that allows users to define and provision infrastructure resources in a declarative manner using Hashicorp language, also called HCL (Hashicorp Configure Language).When working with AWS, Terraform enables you to create, manage, and update resources such as EC2 instances, Security groups, VPCs, route tables, internet gateways (IGW), S3 buckets, and relational databases efficiently and consistently....

Terraform has two types of flows

Workflow: In workflow we have three stages, first one is write the terraform code for what cloud resources we want and second one is plan it gives a blueprint of cloud resources which we desired to create and finally third one is apply it simply starts building the terraform code....

Step-By-Step Process To Create To Create AWS Route table Using Terraform

Here, i am going to create a aws Route table by launching AWS ec2 instance....

Terraform Scripts

In Terraform, the terraform block is used to configure settings related to the Terraform execution environment itself. This block allows you to define various options and configurations that affect how Terraform behaves when executing your infrastructure code....

Provider Block

In Terraform, the “provider” block is a fundamental construct used to define and configure the provider responsible for managing the resources in a specific cloud or infrastructure environment. Providers are plugins in Terraform that interface with APIs of various services or platforms to create, read, update, and delete resources....

Resources Block

In Terraform, the “resources” block is not a specific construct like the provider or terraform blocks. Instead, it’s a common terminology used to refer to the section of a Terraform configuration where you define the infrastructure resources what you want to desire....

Route table in aws using terraform – FAQ’s

What is a Route Table in AWS?...