From 10923ae60e8fde198076878af05985c2981ef1e1 Mon Sep 17 00:00:00 2001 From: Aiden Scandella Date: Thu, 28 Sep 2023 07:46:54 -0700 Subject: [PATCH 1/2] Update aws_eip VPC syntax to non-deprecated version --- modules/terraform-aws-alternat/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/terraform-aws-alternat/main.tf b/modules/terraform-aws-alternat/main.tf index 039345c..78c59fa 100644 --- a/modules/terraform-aws-alternat/main.tf +++ b/modules/terraform-aws-alternat/main.tf @@ -54,7 +54,7 @@ locals { resource "aws_eip" "nat_instance_eips" { count = local.reuse_nat_instance_eips ? 0 : length(var.vpc_az_maps) - vpc = true + domain = "vpc" tags = merge(var.tags, { "Name" = "alternat-instance-${count.index}" }) @@ -394,7 +394,7 @@ resource "aws_eip" "nat_gateway_eips" { : obj.az => obj.public_subnet_id if var.create_nat_gateways } - vpc = true + domain = "vpc" tags = merge(var.tags, { "Name" = "alternat-gateway-eip" }) From ad1123eced39dded628698675b20d819989b92fe Mon Sep 17 00:00:00 2001 From: Aiden Scandella Date: Thu, 28 Sep 2023 11:27:04 -0700 Subject: [PATCH 2/2] Remove domain --- modules/terraform-aws-alternat/main.tf | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/terraform-aws-alternat/main.tf b/modules/terraform-aws-alternat/main.tf index 78c59fa..baba331 100644 --- a/modules/terraform-aws-alternat/main.tf +++ b/modules/terraform-aws-alternat/main.tf @@ -54,7 +54,6 @@ locals { resource "aws_eip" "nat_instance_eips" { count = local.reuse_nat_instance_eips ? 0 : length(var.vpc_az_maps) - domain = "vpc" tags = merge(var.tags, { "Name" = "alternat-instance-${count.index}" }) @@ -394,7 +393,6 @@ resource "aws_eip" "nat_gateway_eips" { : obj.az => obj.public_subnet_id if var.create_nat_gateways } - domain = "vpc" tags = merge(var.tags, { "Name" = "alternat-gateway-eip" })