Skip to content

Commit

Permalink
Fix default VPC resources (#24)
Browse files Browse the repository at this point in the history
* Add settings for default SG

* Exclude default RT and ACL
  • Loading branch information
snovikov authored Jun 27, 2023
1 parent 0e51482 commit 9d3c758
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d3c758

Please sign in to comment.