Skip to content

Commit

Permalink
fix: remove redis client sg from services
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kopp authored and BrianKopp committed Jan 31, 2024
1 parent 5cb71be commit a8acd87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion modules/bigeye/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ locals {
} : {}

datawatch_additional_security_groups = var.create_security_groups ? [
module.redis.client_security_group_id,
module.rabbitmq.client_security_group_id,
module.bigeye_admin.client_security_group_id,
] : []
Expand Down
7 changes: 6 additions & 1 deletion modules/bigeye/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,6 @@ module "scheduler" {
additional_security_group_ids = concat(
var.scheduler_extra_security_group_ids,
[module.bigeye_admin.client_security_group_id],
var.create_security_groups ? [module.redis.client_security_group_id] : [],
)
traffic_port = var.scheduler_port
ecs_cluster_id = aws_ecs_cluster.this.id
Expand Down Expand Up @@ -1880,6 +1879,12 @@ module "redis" {
create_security_groups = var.create_security_groups
subnet_group_name = local.elasticache_subnet_group_name
extra_security_group_ids = concat(var.redis_extra_security_group_ids, [module.bigeye_admin.client_security_group_id])
allowed_client_security_group_ids = var.create_security_groups ? [
module.scheduler.security_group_id,
module.datawatch.security_group_id,
module.datawork.security_group_id,
module.metricwork.security_group_id,
] : []
auth_token_secret_arn = local.redis_auth_token_secret_arn
instance_type = var.redis_instance_type
instance_count = var.redundant_infrastructure ? 2 : 1
Expand Down

0 comments on commit a8acd87

Please sign in to comment.