Skip to content

Commit

Permalink
outbound rules for mis servers
Browse files Browse the repository at this point in the history
  • Loading branch information
sobostion committed Oct 15, 2024
1 parent 744957e commit 933c426
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 933c426

Please sign in to comment.