From 5b7ed7e12ab4d33157b72ca35b0cf3ce538300ee Mon Sep 17 00:00:00 2001 From: Philippe Modard Date: Mon, 7 Apr 2025 16:01:38 +0200 Subject: [PATCH] Add outputs for Security Group and ZoneId This is useful to: - add a database security group to the same security group - create a A record --- modules/aws_ecs/outputs.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/aws_ecs/outputs.tf b/modules/aws_ecs/outputs.tf index 95a3f48..7368222 100644 --- a/modules/aws_ecs/outputs.tf +++ b/modules/aws_ecs/outputs.tf @@ -57,3 +57,13 @@ output "iam_task_role_name" { value = aws_iam_role.task_role.name description = "IAM role name for all ECS tasks" } + +output "security_group_id" { + description = "Security group ID for ECS containers" + value = aws_security_group.containers.id +} + +output "ecs_alb_zone_id" { + description = "Zone ID for Retool ALB" + value = aws_lb.this.zone_id +}