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}" +}