This repository was archived by the owner on Jul 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
No eth1 after apply #44
Copy link
Copy link
Open
Description
Hi! Thank you for the work!
But I am not be able to make this work though. The created nat instance does not have eth1.
Thanks!
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
name = "main_vpc"
cidr = "10.1.0.0/16"
azs = ["xxxxxxx"]
private_subnets = ["10.1.1.0/24"]
public_subnets = ["10.1.0.0/24"]
enable_dns_hostnames = true
}
module "nat" {
# https://registry.terraform.io/modules/int128/nat-instance/aws/latest?tab=inputs
source = "int128/nat-instance/aws"
name = "nat"
vpc_id = module.vpc.vpc_id
public_subnet = module.vpc.public_subnets[0]
private_subnets_cidr_blocks = module.vpc.private_subnets_cidr_blocks
private_route_table_ids = module.vpc.private_route_table_ids
enabled = true
}
resource "aws_eip" "nat" {
network_interface = module.nat.eni_id
tags = {
"Name" = "nat-instance"
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels