From 7b26c8c1cf2c3c83cf95017b324e1e2608f6a114 Mon Sep 17 00:00:00 2001 From: Samuli Saarinen Date: Thu, 28 Feb 2019 00:18:05 +0200 Subject: [PATCH] Add task definition family and revision to module outputs (#21) * Add task definition family and revision as outputs * Update docs --- README.md | 2 ++ docs/terraform.md | 2 ++ outputs.tf | 10 ++++++++++ 3 files changed, 14 insertions(+) diff --git a/README.md b/README.md index f117451a..34b0fdd3 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,8 @@ Available targets: | service_name | ECS Service name | | service_role_arn | ECS Service role ARN | | service_security_group_id | Security Group ID of the ECS task | +| task_definition_family | ECS task definition family | +| task_definition_revision | ECS task definition revision | | task_role_arn | ECS Task role ARN | | task_role_name | ECS Task role name | diff --git a/docs/terraform.md b/docs/terraform.md index 82e6528e..01c20a90 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -33,6 +33,8 @@ | service_name | ECS Service name | | service_role_arn | ECS Service role ARN | | service_security_group_id | Security Group ID of the ECS task | +| task_definition_family | ECS task definition family | +| task_definition_revision | ECS task definition revision | | task_role_arn | ECS Task role ARN | | task_role_name | ECS Task role name | diff --git a/outputs.tf b/outputs.tf index 727ab5f4..085c03e6 100644 --- a/outputs.tf +++ b/outputs.tf @@ -22,3 +22,13 @@ output "service_security_group_id" { description = "Security Group ID of the ECS task" value = "${aws_security_group.ecs_service.id}" } + +output "task_definition_family" { + description = "ECS task definition family" + value = "${aws_ecs_task_definition.default.family}" +} + +output "task_definition_revision" { + description = "ECS task definition revision" + value = "${aws_ecs_task_definition.default.revision}" +}