From d64c1c0974795aeb8561416fdd6932de9c5ebc35 Mon Sep 17 00:00:00 2001 From: galargh Date: Tue, 30 Jan 2024 20:15:09 +0000 Subject: [PATCH] Allow internal ingress --- .github/workflows/playground.yml | 3 --- vpc.tf | 21 ++++++++++++++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml index 1263162..4246f60 100644 --- a/.github/workflows/playground.yml +++ b/.github/workflows/playground.yml @@ -2,9 +2,6 @@ name: Playground on: workflow_dispatch: - push: - paths: - - .github/workflows/playground.yml jobs: playground: diff --git a/vpc.tf b/vpc.tf index 1563600..a710a99 100644 --- a/vpc.tf +++ b/vpc.tf @@ -6,7 +6,7 @@ module "vpc" { source = "terraform-aws-modules/vpc/aws" - version = "5.1.0" + version = "5.1.2" name = "vpc-${var.name}" cidr = "10.0.0.0/16" @@ -41,5 +41,24 @@ module "vpc" { private_subnet_ipv6_prefixes = [3, 4, 5] database_subnet_ipv6_prefixes = [6, 7, 8] + default_security_group_ingress = [ + { + description = "Allow all" + protocol = -1 + self = true + } + ] + + default_security_group_egress = [ + { + description = "Allow all" + protocol = -1 + from_port = 0 + to_port = 0 + cidr_blocks = "0.0.0.0/0" + ipv6_cidr_blocks = "::/0" + } + ] + tags = local.tags }