Skip to content

Commit

Permalink
Merge pull request #1613 from ministryofjustice/LAWS-3033
Browse files Browse the repository at this point in the history
LAW-3033 OAS LZ Integration
  • Loading branch information
alanrana7 authored Mar 8, 2023
2 parents bc9bf65 + ab918b0 commit f571f11
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions terraform/environments/oas/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ resource "aws_security_group" "ec2" {
protocol = "tcp"
cidr_blocks = [local.application_data.accounts[local.environment].inbound_cidr_lz]
}
ingress {
description = "http access from LZ to oas-mp to test connectivity"
from_port = 1389
to_port = 1389
protocol = "tcp"
cidr_blocks = [local.application_data.accounts[local.environment].inbound_cidr_lz]
}

egress {
description = "Allow AWS SSM Session Manager"
Expand Down Expand Up @@ -176,6 +183,20 @@ resource "aws_security_group" "ec2" {
protocol = "tcp"
cidr_blocks = [local.application_data.accounts[local.environment].outbound_access_cidr]
}
egress {
description = "http access from LZ to oas-mp to test connectivity"
from_port = 1389
to_port = 1389
protocol = "tcp"
cidr_blocks = [local.application_data.accounts[local.environment].inbound_cidr_lz]
}
egress {
description = "http access from LZ to oas-mp to test connectivity"
from_port = 1521
to_port = 1521
protocol = "tcp"
cidr_blocks = [local.application_data.accounts[local.environment].inbound_cidr_lz]
}
}

resource "aws_iam_instance_profile" "ec2_instance_profile" {
Expand Down

0 comments on commit f571f11

Please sign in to comment.