diff --git a/src/outputs.tf b/src/outputs.tf index 0bd4d04..c702e9d 100644 --- a/src/outputs.tf +++ b/src/outputs.tf @@ -2,3 +2,8 @@ output "redis_clusters" { description = "Redis cluster objects" value = local.enabled ? local.clusters : {} } + +output "security_group_id" { + description = "The security group ID of the ElastiCache Redis cluster" + value = local.enabled ? try(module.redis_clusters[keys(var.redis_clusters)[0]].security_group_id, null) : null +}