forked from FitnessKeeper/terraform-aws-ecs-service
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathoutputs.tf
59 lines (48 loc) · 1.85 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
output "lb_dns_aliases" {
description = "List of DNS aliases add for ALB"
value = "${module.route53-aliases.hostnames}"
}
output "lb_dns_name" {
description = "FQDN of ALB provisioned for service (if present)"
value = "${module.lb.dns_name}"
}
output "lb_zone_id" {
description = "Route 53 zone ID of ALB provisioned for service (if present)"
value = "${module.lb.zone_id}"
}
output "log_group_name" {
description = "Cloudwatch log group name for service"
value = "${local.log_group_name}"
}
output "task_iam_role_arn" {
description = "ARN of the IAM Role for the ECS Task"
value = "${element(concat(aws_iam_role.task.*.arn, list("")), 0)}"
}
output "task_iam_role_name" {
description = "Name of the IAM Role for the ECS Task"
value = "${element(concat(aws_iam_role.task.*.name, list("")), 0)}"
}
output "service_iam_role_arn" {
description = "ARN of the IAM Role for the ECS Service"
value = "${element(concat(aws_iam_role.service.*.arn, list("")), 0)}"
}
output "service_iam_role_name" {
description = "Name of the IAM Role for the ECS Task"
value = "${element(concat(aws_iam_role.service.*.name, list("")), 0)}"
}
output "cluster_arn" {
description = "ECS cluster ARN"
value = "${element(concat(aws_ecs_service.service-no-lb.*.cluster, aws_ecs_service.service.*.cluster, list("")), 0)}"
}
output "service_arn" {
description = "ECS service ARN"
value = "${element(concat(aws_ecs_service.service-no-lb.*.id, aws_ecs_service.service.*.id, list("")), 0)}"
}
output "service_name" {
description = "ECS service name"
value = "${element(concat(aws_ecs_service.service-no-lb.*.name, aws_ecs_service.service.*.name, list("")), 0)}"
}
output "container_json" {
description = ""
value = "${element(concat(data.template_file.container_definition.*.rendered, list("")), 0)}"
}