Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add jumpserver for testing #9461

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,27 @@ locals {
protocol = -1
self = true
}
rpc_tcp_rds = {
description = "135: Allow RPC TCP ingress from RDS"
from_port = 135
to_port = 135
protocol = "TCP"
cidr_blocks = local.security_group_cidrs.rd_session_hosts
}
rds_udp_rds = {
description = "135: Allow RPC UDP ingress from RDS"
from_port = 135
to_port = 135
protocol = "UDP"
cidr_blocks = local.security_group_cidrs.rd_session_hosts
}
rpc_tcp_cb = {
description = "445: Allow RPC TCP ingress from Connection Broker"
from_port = 445
to_port = 445
protocol = "TCP"
cidr_blocks = local.security_group_cidrs.rd_session_hosts
}
rdp_tcp_web = {
description = "3389: Allow RDP TCP ingress"
from_port = 3389
Expand All @@ -147,6 +168,27 @@ locals {
protocol = "UDP"
cidr_blocks = local.security_group_cidrs.rd_session_hosts
}
winrm_rds = {
description = "5985/6: Allow WinRM TCP ingress (powershell remoting) for RDS"
from_port = 5985
to_port = 5986
protocol = "TCP"
cidr_blocks = local.security_group_cidrs.rd_session_hosts
}
dynamic_rpc_tcp_rds = {
description = "49152-65535: Allow Dynamic RPC TCP ingress from RDS"
from_port = 49152
to_port = 65535
protocol = "TCP"
cidr_blocks = local.security_group_cidrs.rd_session_hosts
}
dynamic_rpc_udp_rds = {
description = "49152-65535: Allow Dyanmic RPC UDP ingress from RDS"
from_port = 49152
to_port = 65535
protocol = "UDP"
cidr_blocks = local.security_group_cidrs.rd_session_hosts
}
}
egress = {
all = {
Expand Down
33 changes: 28 additions & 5 deletions terraform/environments/hmpps-domain-services/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,19 @@ locals {
# domain-name = "azure.noms.root"
# })
# }
# test-rds-2-a = merge(local.ec2_autoscaling_groups.rds, {
# tags = merge(local.ec2_autoscaling_groups.rds.tags, {
# domain-name = "azure.noms.root"
# })
# }
test-rds-2-a = merge(local.ec2_autoscaling_groups.rds, {
config = merge(local.ec2_autoscaling_groups.rds.config, {
availability_zone = "eu-west-2a"
user_data_raw = base64encode(templatefile(
"../../modules/baseline_presets/ec2-user-data/user-data-pwsh.yaml.tftpl", {
branch = "TM/TM-916/add-rds-role-to-jumpservers"
}
))
})
tags = merge(local.ec2_autoscaling_groups.rds.tags, {
domain-name = "azure.noms.root"
})
})
}

ec2_instances = {
Expand All @@ -126,6 +134,21 @@ locals {
domain-name = "azure.noms.root"
})
})

# test jumpserver - do not use
t2-jump2022-2 = merge(local.ec2_instances.jumpserver, {
config = merge(local.ec2_instances.jumpserver.config, {
availability_zone = "eu-west-2b"
user_data_raw = base64encode(templatefile(
"../../modules/baseline_presets/ec2-user-data/user-data-pwsh.yaml.tftpl", {
branch = "TM/TM-916/add-rds-role-to-jumpservers"
}
))
})
tags = merge(local.ec2_instances.jumpserver.tags, {
domain-name = "azure.noms.root"
})
})
}

fsx_windows = {
Expand Down
Loading