generated from geekcell/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutputs.tf
70 lines (58 loc) · 1.89 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
60
61
62
63
64
65
66
67
68
69
70
## CODEDEPLOY
output "codedeploy_app_name" {
description = "CodeDeploy application name."
value = aws_codedeploy_app.main.name
}
output "codedeploy_deployment_group_name" {
description = "CodeDeploy deployment group name."
value = aws_codedeploy_deployment_group.main.deployment_group_name
}
## ECS
output "service_name" {
description = "ECS service name."
value = aws_ecs_service.main.name
}
## TARGET GROUPS
output "blue_target_group_arn" {
description = "ARN of the blue target group."
value = aws_lb_target_group.main["blue"].arn
}
output "green_target_group_arn" {
description = "ARN of the green target group."
value = aws_lb_target_group.main["green"].arn
}
## LOAD BALANCER LISTENER
output "aws_lb_listener_arn" {
description = "ARN of the ALB main listener."
value = try(aws_lb_listener.main[0].arn, null)
}
output "aws_lb_test_listener_arn" {
description = "ARN of the ALB test listener."
value = try(aws_lb_listener.test_listener[0].arn, null)
}
## TASK DEFINITION
output "task_definition_arn" {
description = "ARN of the task definition."
value = module.task_definition.arn
}
output "task_definition_task_role_name" {
description = "Name of the task role."
value = module.task_definition.task_role_name
}
output "task_definition_task_role_arn" {
description = "ARN of the task role."
value = module.task_definition.task_role_arn
}
output "task_definition_execution_role_name" {
description = "Name of the task execution role."
value = module.task_definition.execution_role_name
}
output "task_definition_execution_role_arn" {
description = "ARN of the task execution role."
value = module.task_definition.execution_role_arn
}
## CLOUDWATCH
output "cloudwatch_log_group_arn" {
description = "ARN of the CloudWatch log group."
value = try(aws_cloudwatch_log_group.main[0].arn, null)
}