diff --git a/README.md b/README.md index a0c5d43..6ada5a7 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/outputs.tf b/outputs.tf index d066bdf..f7346d6 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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)}" diff --git a/resource-plan-graph.png b/resource-plan-graph.png index 6bf5bdc..416ebf3 100644 Binary files a/resource-plan-graph.png and b/resource-plan-graph.png differ