-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutput.tf
59 lines (49 loc) · 1.6 KB
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
output "aws_region" {
value = local.region
description = "The AWS region used"
}
output "app_url" {
value = local.addons.loadbalancer.enable ? aws_lb.this.0.dns_name : ""
description = "The public ALB DNS"
}
output "loadbalancer" {
value = !local.addons.loadbalancer.enable ? null : {
loadbalancer = aws_lb.this.0
target_group = aws_lb_target_group.this.0
lb_listener = aws_lb_listener.this.0
}
description = "The AWS Load Balancer resources (`loadbalancer`, `target_group` and `lb_listener`)"
}
output "publisher_access_key" {
value = local.addons.iam.enable ? aws_iam_access_key.publisher.0.id : ""
description = "AWS_ACCESS_KEY to publish to ECR"
}
output "publisher_secret_key" {
value = local.addons.iam.enable ? aws_iam_access_key.publisher.0.secret : ""
description = "AWS_SECRET_ACCESS_KEY to upload to the ECR"
sensitive = true
}
output "ecr_url" {
value = local.addons.ecr.enable ? aws_ecr_repository.this.0.repository_url : ""
description = "The ECR repository URL"
}
output "ecr_repository_name" {
value = local.addons.ecr.enable ? aws_ecr_repository.this.0.name : ""
description = "The ECR repository name"
}
output "ecs_cluster" {
value = aws_ecs_cluster.this.name
description = "The ECS cluster name"
}
output "ecs_service" {
value = aws_ecs_service.this.name
description = "The ECS service name"
}
output "container_name" {
value = local.container.name
description = "Container name for the ECS task"
}
output "addons" {
value = local.addons
description = "The Addons configuration"
}