Hi@akhtar,
You can find one resource named aws_internet_gateway. It allows us to create Internet Gateway in AWS. I have attached one example below for your reference.
resource "aws_internet_gateway" "gw" {
vpc_id = "${aws_vpc.main.id}"
tags = {
Name = "My_IGW"
}
}
For more, join our AWS certification program and learn how to create an internet gateway today.
Thanks!