-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
30 lines (25 loc) · 801 Bytes
/
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
#Log the load balancer app url
output "app_url" {
value = aws_alb.application_load_balancer.dns_name
}
output "ecr_repository_url" {
value = aws_ecr_repository.prediction_service_ecr_repo.repository_url
}
output "task_definition_json" {
value = jsonencode({
taskDefinition = {
containerDefinitions = jsonencode(aws_ecs_task_definition.service_task.container_definitions)
taskDefinitionArn = aws_ecs_task_definition.service_task.arn
volumes = aws_ecs_task_definition.service_task.volume
}
})
}
output "container_name" {
value = jsondecode(aws_ecs_task_definition.service_task.container_definitions)[0].name
}
output "ecs_service" {
value = aws_ecs_service.app_service.name
}
output "ecs_cluster" {
value = aws_ecs_cluster.ecs_cluster.name
}