-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
44 lines (38 loc) · 1.17 KB
/
outputs.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
output "service_arn" {
description = "ECS service ARN."
value = join(
":",
[
"arn",
"aws",
"ecs",
data.aws_region.current.name,
data.aws_caller_identity.current.account_id,
"service/${aws_ecs_cluster.ecs.name}/${aws_ecs_service.ecs.name}"
]
)
}
output "asg_arn" {
description = "Autoscaling group ARN created for the ECS service."
value = local.arg_arn
}
output "asg_name" {
description = "Autoscaling group name created for the ECS service."
value = local.asg_name
}
output "load_balancer_dns_name" {
description = "Load balancer DNS name."
value = local.load_balancer_dns_name
}
output "dns_hostnames" {
description = "DNS hostnames where the ECS service is available."
value = [for h in var.dns_names : trimprefix(join(".", [h, data.aws_route53_zone.this.name]), ".")]
}
output "task_execution_role_name" {
description = "Task execution role is a role that ECS agent gets."
value = aws_iam_role.ecs_task_execution_role.name
}
output "task_execution_role_arn" {
description = "Task execution role is a role that ECS agent gets."
value = aws_iam_role.ecs_task_execution_role.arn
}