-
Notifications
You must be signed in to change notification settings - Fork 2
/
outputs.tf
59 lines (48 loc) · 1.78 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 "exec_role_arn" {
description = "The ECS execution role ARN"
value = length(local.task_exec_role_arn) > 0 ? local.task_exec_role_arn : try(aws_iam_role.ecs_exec[0].arn, "")
}
output "exec_role_name" {
description = "The ECS execution role name"
value = try(aws_iam_role.ecs_exec[0].name, "")
}
output "exec_role_policy_id" {
description = "The ECS execution role policy ID, in the form of `role_name:role_policy_name`"
value = try(aws_iam_role_policy.ecs_exec[0].id, "")
}
output "exec_role_policy_name" {
description = "The ECS execution role policy name"
value = try(aws_iam_role_policy.ecs_exec[0].name, "")
}
output "exec_role_unique_id" {
description = "The ECS execution role unique id"
value = try(aws_iam_role.ecs_exec[0].unique_id, "")
}
output "task_definition_arn" {
description = "The ECS task definition ARN"
value = try(aws_ecs_task_definition.default[0].arn, "")
}
output "task_definition_family" {
description = "The ECS task definition family"
value = try(aws_ecs_task_definition.default[0].family, "")
}
output "task_definition_revision" {
description = "The ECS task definition revision"
value = try(aws_ecs_task_definition.default[0].revision, "")
}
output "task_role_arn" {
description = "The ECS task role ARN"
value = length(local.task_role_arn) > 0 ? local.task_role_arn : try(aws_iam_role.ecs_task[0].arn, "")
}
output "task_role_id" {
description = "The ECS task role id"
value = try(aws_iam_role.ecs_task[0].id, "")
}
output "task_role_name" {
description = "The ECS task role name"
value = try(aws_iam_role.ecs_task[0].name, "")
}
output "task_role_unique_id" {
description = "The ECS task role unique id"
value = try(aws_iam_role.ecs_task[0].unique_id, "")
}