From 933c4264cd81891e2df02676715d3bedfb4ef6dd Mon Sep 17 00:00:00 2001 From: Seb Norris Date: Thu, 10 Oct 2024 10:41:29 +0100 Subject: [PATCH] outbound rules for mis servers --- .../delius-mis/modules/mis_environment/bcs.tf | 9 +++++++++ .../delius-mis/modules/mis_environment/bps.tf | 9 +++++++++ .../delius-mis/modules/mis_environment/bws.tf | 9 +++++++++ .../delius-mis/modules/mis_environment/dis.tf | 9 +++++++++ 4 files changed, 36 insertions(+) diff --git a/terraform/environments/delius-mis/modules/mis_environment/bcs.tf b/terraform/environments/delius-mis/modules/mis_environment/bcs.tf index 1807d82a627..8b597805502 100644 --- a/terraform/environments/delius-mis/modules/mis_environment/bcs.tf +++ b/terraform/environments/delius-mis/modules/mis_environment/bcs.tf @@ -3,6 +3,15 @@ resource "aws_security_group" "bcs" { vpc_id = var.account_info.vpc_id } +resource "aws_security_group_rule" "bcs_outbound" { + type = "egress" + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + security_group_id = aws_security_group.bcs.id +} + module "bcs_instance" { source = "github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance" diff --git a/terraform/environments/delius-mis/modules/mis_environment/bps.tf b/terraform/environments/delius-mis/modules/mis_environment/bps.tf index d2b9bd4ce58..d184e7a2dc0 100644 --- a/terraform/environments/delius-mis/modules/mis_environment/bps.tf +++ b/terraform/environments/delius-mis/modules/mis_environment/bps.tf @@ -3,6 +3,15 @@ resource "aws_security_group" "bps" { vpc_id = var.account_info.vpc_id } +resource "aws_security_group_rule" "bps_outbound" { + type = "egress" + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + security_group_id = aws_security_group.bps.id +} + module "bps_instance" { source = "github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance" diff --git a/terraform/environments/delius-mis/modules/mis_environment/bws.tf b/terraform/environments/delius-mis/modules/mis_environment/bws.tf index 1f8fd1443f2..c45de460451 100644 --- a/terraform/environments/delius-mis/modules/mis_environment/bws.tf +++ b/terraform/environments/delius-mis/modules/mis_environment/bws.tf @@ -3,6 +3,15 @@ resource "aws_security_group" "bws" { vpc_id = var.account_info.vpc_id } +resource "aws_security_group_rule" "bws_outbound" { + type = "egress" + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + security_group_id = aws_security_group.bws.id +} + module "bws_instance" { source = "github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance" diff --git a/terraform/environments/delius-mis/modules/mis_environment/dis.tf b/terraform/environments/delius-mis/modules/mis_environment/dis.tf index b4240b4ab6f..0f41d5edd0d 100644 --- a/terraform/environments/delius-mis/modules/mis_environment/dis.tf +++ b/terraform/environments/delius-mis/modules/mis_environment/dis.tf @@ -3,6 +3,15 @@ resource "aws_security_group" "dis" { vpc_id = var.account_info.vpc_id } +resource "aws_security_group_rule" "dis_outbound" { + type = "egress" + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + security_group_id = aws_security_group.dis.id +} + module "dis_instance" { source = "github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance"