Skip to content

Commit

Permalink
DSOS-2748: more security group tweaks (#5893)
Browse files Browse the repository at this point in the history
  • Loading branch information
drobinson-moj authored Apr 29, 2024
1 parent 97d639d commit 4eab32a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ locals {
})
instance = merge(module.baseline_presets.ec2_instance.instance.default, {
instance_type = "t3.large"
vpc_security_group_ids = ["private", "bip"]
vpc_security_group_ids = ["bip"]
})

user_data_cloud_init = module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_and_ansible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ locals {
mount_targets = [{
subnet_name = "private"
availability_zones = ["eu-west-2a"]
security_groups = ["private", "bip"]
security_groups = ["bip"]
}]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,11 @@ locals {
self = true
}
oracle1521 = {
description = "Allow oracle database 1521 ingress"
from_port = "1521"
to_port = "1521"
protocol = "tcp"
cidr_blocks = local.security_group_cidrs.oracle_db
security_groups = ["private", "bip", "etl"]
description = "Allow oracle database 1521 ingress"
from_port = "1521"
to_port = "1521"
protocol = "tcp"
cidr_blocks = local.security_group_cidrs.oracle_db
}
oracle3872 = {
description = "Allow oem agent ingress"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ locals {
enable_delete_protection = false
load_balancer_type = "application"
idle_timeout = 3600
security_groups = ["private", "lb"]
security_groups = ["lb"]
subnets = module.environment.subnets["private"].ids
enable_cross_zone_load_balancing = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ locals {
})
instance = merge(module.baseline_presets.ec2_instance.instance.default, {
instance_type = "t3.large"
vpc_security_group_ids = ["private", "web"]
vpc_security_group_ids = ["web"]
})
ebs_volumes = {
"/dev/sdb" = { type = "gp3", size = 100 }
Expand Down

0 comments on commit 4eab32a

Please sign in to comment.