-
Notifications
You must be signed in to change notification settings - Fork 14
/
outputs.tf
70 lines (57 loc) · 2.65 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
output "autoscaling_target" {
description = "ECS auto scaling targets if auto scaling enabled."
value = try(aws_appautoscaling_target.ecs[0], null)
}
output "cloudwatch_log_group" {
description = "Name of the CloudWatch log group for container logs."
value = try(aws_cloudwatch_log_group.containers[0].name, "")
}
output "container_definitions" {
description = "Container definitions used by this service including all sidecars."
sensitive = true
value = local.container_definitions
}
output "ecr_repository_arn" {
description = "Full ARN of the ECR repository."
value = join("", module.ecr[*].arn)
}
output "ecr_repository_id" {
description = "The registry ID where the repository was created."
value = join("", module.ecr[*].registry_id)
}
output "ecr_repository_url" {
description = "The URL of the repository (in the form `aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName`)"
value = join("", module.ecr[*].repository_url)
}
output "task_role_arn" {
description = "ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services."
value = try(aws_iam_role.ecs_task_role[0].arn, var.task_role_arn)
}
output "task_role_name" {
description = "Friendly name of IAM role that allows your Amazon ECS container task to make calls to other AWS services."
value = try(aws_iam_role.ecs_task_role[0].name, "")
}
output "task_role_unique_id" {
description = "Stable and unique string identifying the IAM role that allows your Amazon ECS container task to make calls to other AWS services."
value = try(aws_iam_role.ecs_task_role[0].unique_id, "")
}
output "task_execution_role_arn" {
description = "ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume."
value = try(aws_iam_role.task_execution_role[0].arn, var.task_execution_role_arn)
}
output "task_execution_role_name" {
description = "Friendly name of the task execution role that the Amazon ECS container agent and the Docker daemon can assume."
value = try(aws_iam_role.task_execution_role[0].name, "")
}
output "task_execution_role_unique_id" {
description = "Stable and unique string identifying the IAM role that the Amazon ECS container agent and the Docker daemon can assume."
value = try(aws_iam_role.task_execution_role[0].unique_id, "")
}
output "alb_target_group_arns" {
description = "ARNs of the created target groups."
value = aws_alb_target_group.main[*].arn
}
output "alb_target_group_arn_suffixes" {
description = "ARN suffixes of the created target groups."
value = aws_alb_target_group.main[*].arn_suffix
}