You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
// TF version 0.12.20
resource "aws_eip" "nat" {
count = 1
vpc = true
}
module "vpc" {
create_vpc = var.module_enabled
source = "terraform-aws-modules/vpc/aws"
version = "2.24.0"
name = "${var.deploy_name}-${var.region}"
cidr = "192.168.0.0/16"
azs = split(",", var.aws_azs[var.region])
public_subnets = ["192.168.14.0/24"]
private_subnets = ["192.168.192.0/19"]
enable_nat_gateway = true
single_nat_gateway = false
reuse_nat_ips = true
external_nat_ip_ids = "${aws_eip.nat.*.id}"
enable_vpn_gateway = false
enable_dns_hostnames = true
vpc_tags = {
"kubernetes.io/cluster/${var.deploy_name}-${var.region}" = "shared"
}
private_subnet_tags = {
"kubernetes.io/cluster/${var.deploy_name}-${var.region}" = "shared"
}
public_subnet_tags = {
"kubernetes.io/cluster/${var.deploy_name}-${var.region}" = "owned"
}
tags = {
Terraform = "true"
Environment = var.environment
KubernetesCluster = "${var.deploy_name}-${var.region}"
}
}
output "nat_public_ips" {
// value = module.vpc.nat_public_ips // - printing empty
value = "${aws_eip.nat.*.public_ip}" // printing the ip
}
The text was updated successfully, but these errors were encountered: