Skip to content

Commit

Permalink
Add outputs for ARNs, and name
Browse files Browse the repository at this point in the history
  • Loading branch information
snemetz committed Feb 16, 2019
1 parent a42e527 commit 34ecc68
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,15 @@ This software is released under the MIT License (see `LICENSE`).

| Name | Description |
|------|-------------|
| cluster\_arn | ECS cluster ARN |
| container\_json | |
| lb\_dns\_aliases | List of DNS aliases add for ALB |
| lb\_dns\_name | FQDN of ALB provisioned for service (if present) |
| lb\_zone\_id | Route 53 zone ID of ALB provisioned for service (if present) |
| service\_arn | ECS service ARN |
| service\_iam\_role\_arn | ARN of the IAM Role for the ECS Service |
| service\_iam\_role\_name | Name of the IAM Role for the ECS Task |
| service\_name | ECS service name |
| task\_iam\_role\_arn | ARN of the IAM Role for the ECS Task |
| task\_iam\_role\_name | Name of the IAM Role for the ECS Task |

Expand Down
15 changes: 15 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ output "service_iam_role_name" {
value = "${element(concat(aws_iam_role.service.*.name, list("")), 0)}"
}

output "cluster_arn" {
description = "ECS cluster ARN"
value = "${element(compact(concat(aws_ecs_service.service-no-lb.*.cluster, aws_ecs_service.service.*.cluster, list(""))), 0)}"
}

output "service_arn" {
description = "ECS service ARN"
value = "${element(compact(concat(aws_ecs_service.service-no-lb.*.id, aws_ecs_service.service.*.id, list(""))), 0)}"
}

output "service_name" {
description = "ECS service name"
value = "${element(compact(concat(aws_ecs_service.service-no-lb.*.name, aws_ecs_service.service.*.name, list(""))), 0)}"
}

output "container_json" {
description = ""
value = "${element(concat(data.template_file.container_definition.*.rendered, list("")), 0)}"
Expand Down
Binary file modified resource-plan-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 34ecc68

Please sign in to comment.