Not able to Create AWS NATGATEWAY using terraform


Hi Team,

I cannot able to create the nat gateway using the terraform. I am using the below code.

Create Elastic IP
resource “aws_eip” “tuto_eip” {
vpc = true
depends_on = [“”]

Create NAT Gateway
resource “aws_nat_gateway” “nat” {
allocation_id = “${}”
subnet_id = “${}”

In this code Elastic IP is creating properly. But the nat gateway not creating.

Please let us know how to create nat gateway.