generated from terraform-module/terraform-module-blueprint
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
56 lines (48 loc) · 2.21 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
################################################################################
# SERVICE DISCOVERY
################################################################################
output "service_discovery" {
description = "Service Discovery. AWS Docs https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html"
value = try(aws_service_discovery_service.this[0], "")
}
################################################################################
# MISCELLANEOUS
################################################################################
output "service_security_group" {
description = "ID of the service security group"
value = try(aws_security_group.this[0].id, "")
}
output "cloudWatch_log_groups" {
description = "CloudWatch log group resources"
value = try(aws_cloudwatch_log_group.this, "")
}
################################################################################
# IAM
################################################################################
output "task_execution_role" {
description = "Provides an IAM roles. AWS Docs https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html"
value = try(aws_iam_role.task_execution_role[0], "")
}
output "task_role" {
description = "Provides an IAM task roles. AWS Docs https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html"
value = try(aws_iam_role.task_role[0], "")
}
################################################################################
# ECS
################################################################################
output "ecs_task_definition" {
description = "A revision of an ECS task definition to be used in aws_ecs_service"
value = try(aws_ecs_task_definition.this[0], "")
}
output "ecs_service" {
description = "Provides an ECS service resource"
value = try(aws_ecs_service.this[0], "")
}
output "ecs_lb_target_group" {
description = "Provides a Target Group resource for use with Load Balancer resources."
value = try(aws_lb_target_group.this[0], "")
}
output "lb_listener_rules" {
description = "Load Balancer Listener Rule resources."
value = try(aws_lb_listener_rule.this[0], "")
}