Skip to content

Commit

Permalink
using pre-existing locals for cidr block value
Browse files Browse the repository at this point in the history
  • Loading branch information
haitchison committed Mar 7, 2024
1 parent 07464ea commit 8e881f8
Showing 1 changed file with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ locals {
rdp = {
inbound = ["10.40.165.0/26", "10.112.3.0/26", "10.102.0.0/16"]
}
# rdgateway = {
# inbound = [module.ip_addresses.mp_cidr.preproduction_production]
# }
rdgateway = [module.ip_addresses.mp_cidr.development_test]
oracle_db = flatten([
module.ip_addresses.azure_fixngo_cidrs.devtest,
module.ip_addresses.moj_cidr.aws_cloud_platform_vpc,
Expand Down Expand Up @@ -44,9 +42,7 @@ locals {
module.ip_addresses.azure_fixngo_cidrs.prod,
])
}
# rdgateway = {
# inbound = [module.ip_addresses.mp_cidr.preproduction_production]
# }
rdgateway = [module.ip_addresses.mp_cidr.preproduction_production]
oracle_db = flatten([
module.ip_addresses.azure_fixngo_cidrs.prod,
module.ip_addresses.moj_cidr.aws_cloud_platform_vpc,
Expand Down Expand Up @@ -207,20 +203,18 @@ locals {
cidr_blocks = local.security_group_cidrs.jumpservers
}
rdp_tcp_gw = {
description = "3389: Allow RDP ingress from domain services RDGateway"
description = "3389: Allow RDP ingress from hmpps domain services RDGateway"
from_port = 3389
to_port = 3389
protocol = "TCP"
# cidr_blocks = local.security_group_cidrs.rdgateway
cidr_blocks = ["10.27.0.0/16"]
cidr_blocks = local.security_group_cidrs.rdgateway
}
rdp_udp_gw = {
description = "3389: Allow RDP ingress from domain services RDGateway"
description = "3389: Allow RDP ingress from hmpps domain services RDGateway"
from_port = 3389
to_port = 3389
protocol = "UDP"
# cidr_blocks = local.security_group_cidrs.rdgateway
cidr_blocks = ["10.27.0.0/16"]
cidr_blocks = local.security_group_cidrs.rdgateway
}
winrm_web = {
description = "5985-6: Allow WinRM ingress"
Expand Down Expand Up @@ -343,20 +337,18 @@ locals {
cidr_blocks = local.security_group_cidrs.jumpservers
}
rdp_tcp_gw = {
description = "3389: Allow RDP ingress from domain services RDGateway"
description = "3389: Allow RDP ingress from hmpps domain services RDGateway"
from_port = 3389
to_port = 3389
protocol = "TCP"
# cidr_blocks = local.security_group_cidrs.rdgateway
cidr_blocks = ["10.27.0.0/16"]
cidr_blocks = local.security_group_cidrs.rdgateway
}
rdp_udp_gw = {
description = "3389: Allow RDP ingress from domain services RDGateway"
description = "3389: Allow RDP ingress from hmpps domain services RDGateway"
from_port = 3389
to_port = 3389
protocol = "UDP"
# cidr_blocks = local.security_group_cidrs.rdgateway
cidr_blocks = ["10.27.0.0/16"]
cidr_blocks = local.security_group_cidrs.rdgateway
}
winrm_app = {
description = "5985-6: Allow WinRM ingress"
Expand Down

0 comments on commit 8e881f8

Please sign in to comment.