From 694d35d0719da06048d0b2c07dc3965cb37dfdb1 Mon Sep 17 00:00:00 2001 From: Byungjin Park Date: Tue, 17 Oct 2023 21:36:49 +0900 Subject: [PATCH] Fix vpc module --- modules/vpc/outputs.tf | 2 +- modules/vpc/variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/vpc/outputs.tf b/modules/vpc/outputs.tf index 4ee925f..ea6ea4b 100644 --- a/modules/vpc/outputs.tf +++ b/modules/vpc/outputs.tf @@ -120,7 +120,7 @@ output "egress_only_internet_gateway_enabled" { output "egress_only_internet_gateway_id" { description = "The ID of the Egress Only Internet Gateway." - value = one(aws_egress_only_internet_gateway.this[0].id) + value = one(aws_egress_only_internet_gateway.this[*].id) } output "vpn_gateway_enabled" { diff --git a/modules/vpc/variables.tf b/modules/vpc/variables.tf index 582c4f0..0c5a962 100644 --- a/modules/vpc/variables.tf +++ b/modules/vpc/variables.tf @@ -6,7 +6,7 @@ variable "name" { variable "cidr_block" { description = "The CIDR block for the VPC. Default value is a valid CIDR, but not acceptable by AWS and should be overridden." type = string - default = "0.0.0.0/0" + default = "10.0.0.0/16" } variable "secondary_cidr_blocks" {