Skip to content

Commit dd5cea1

Browse files
feat: expose security group ID for ElastiCache Redis cluster (#43)
* feat: expose security group ID for ElastiCache Redis cluster - Add security_group_id output to expose the security group ID from the underlying ElastiCache Redis module - This enables proper configuration of inbound and outbound traffic rules for ECS services * Update src/outputs.tf Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f68dca7 commit dd5cea1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ output "redis_clusters" {
22
description = "Redis cluster objects"
33
value = local.enabled ? local.clusters : {}
44
}
5+
6+
output "security_group_id" {
7+
description = "The security group ID of the ElastiCache Redis cluster"
8+
value = local.enabled ? try(module.redis_clusters[keys(var.redis_clusters)[0]].security_group_id, null) : null
9+
}

0 commit comments

Comments
 (0)