Skip to content

Commit

Permalink
Add task definition family and revision to module outputs (#21)
Browse files Browse the repository at this point in the history
* Add task definition family and revision as outputs

* Update docs
  • Loading branch information
ssaarinen authored and aknysh committed Feb 27, 2019
1 parent d15d463 commit 7b26c8c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down
2 changes: 2 additions & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

0 comments on commit 7b26c8c

Please sign in to comment.