Skip to content

Commit 2936ec2

Browse files
committed
fix: add missing outputs to ECS and ALB modules and update outputs.tf
1 parent 5ad26c2 commit 2936ec2

File tree

3 files changed

+65
-2
lines changed

3 files changed

+65
-2
lines changed

modules/alb/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ output "alb_listener_arn" {
22
description = "ARN of the Application load balancer"
33
value = aws_lb_listener.https_listener.arn
44
}
5+
6+
output "alb_dns_name" {
7+
description = "The DNS name of the ALB"
8+
value = aws_lb.this.dns_name
9+
}

modules/ecs/outputs.tf

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
output "cluster_name" {
2-
description = "ECS Cluster name"
1+
output "ecs_cluster_name" {
2+
description = "The name of the ECS cluster"
33
value = aws_ecs_cluster.this.name
44
}
5+
6+
output "ecs_service_name" {
7+
description = "The name of the ECS service"
8+
value = aws_ecs_service.this.name
9+
}
10+
11+
output "ecs_task_definition_arn" {
12+
description = "The ARN of the ECS task definition"
13+
value = aws_ecs_task_definition.this.arn
14+
}
15+
16+
output "endpoint_details" {
17+
description = "Details of the ECS service endpoint"
18+
value = {
19+
lb_listener_arn = var.endpoint_details.lb_listener_arn
20+
domain_url = var.endpoint_details.domain_url
21+
}
22+
}

outputs.tf

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
output "alb_dns_name" {
2+
description = "The DNS name of the ALB"
3+
value = module.alb.alb_dns_name
4+
}
5+
6+
output "ecs_cluster_name" {
7+
description = "The name of the ECS cluster"
8+
value = module.ecs.ecs_cluster_name
9+
}
10+
11+
output "ecs_service_name" {
12+
description = "The name of the ECS service"
13+
value = module.ecs.ecs_service_name
14+
}
15+
16+
output "ecs_task_definition_arn" {
17+
description = "The ARN of the ECS task definition"
18+
value = module.ecs.ecs_task_definition_arn
19+
}
20+
21+
output "github_webhook_url" {
22+
description = "The URL for GitHub webhook"
23+
value = format("%s/events", module.ecs.endpoint_details.domain_url)
24+
}
25+
26+
27+
output "public_subnet_ids" {
28+
description = "The IDs of the public subnets."
29+
value = var.public_subnet_ids
30+
}
31+
32+
output "private_subnet_ids" {
33+
description = "The IDs of the private subnets."
34+
value = var.private_subnet_ids
35+
}
36+
37+
output "vpc_id" {
38+
description = "The ID of the VPC."
39+
value = var.vpc_id
40+
}

0 commit comments

Comments
 (0)