From 9d3c75863091c029e0174fcd2fb5ca5eb4c44c44 Mon Sep 17 00:00:00 2001 From: Novikov Sergey Date: Tue, 27 Jun 2023 12:50:32 +0200 Subject: [PATCH] Fix default VPC resources (#24) * Add settings for default SG * Exclude default RT and ACL --- main.tf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/main.tf b/main.tf index 6b046a7..8a85136 100644 --- a/main.tf +++ b/main.tf @@ -23,6 +23,21 @@ module "aws_vpc" { customer_gateways = var.vpc_customer_gateways + manage_default_route_table = false + manage_default_network_acl = false + default_security_group_ingress = [{ + protocol = -1 + self = true + from_port = 0 + to_port = 0 + }] + default_security_group_egress = [{ + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = "0.0.0.0/0" + }] + name = var.name tags = var.tags vpc_tags = var.vpc_tags