Hi@akhtar,
You can use aws_route_table resources in your Terraform code. It will help you to create a routing table in your VPC. I have attached one example below for your reference.
resource "aws_route_table" "table" {
  vpc_id = "${aws_vpc.main.id}"
 route {
    cidr_block = "0.0.0.0/0"
    gateway_id = "${aws_internet_gateway.gw.id}"
  }
  tags = {
    Name = "MyRoute"
  }
}