From ee70b589e57d1f55188479f55b41cd787156c266 Mon Sep 17 00:00:00 2001 From: iuri aranda Date: Tue, 25 Apr 2017 10:13:32 +0200 Subject: [PATCH 1/2] Added cluster_id output --- ecs-cluster/outputs.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ecs-cluster/outputs.tf b/ecs-cluster/outputs.tf index bd6cf4e..adcbdc4 100644 --- a/ecs-cluster/outputs.tf +++ b/ecs-cluster/outputs.tf @@ -2,6 +2,10 @@ output "cluster_name" { value = "${aws_ecs_cluster.cluster.name}" } +output "cluster_id" { + value = "${aws_ecs_cluster.cluster.id}" +} + output "ecs-instance-profile" { value = "${aws_iam_instance_profile.ecs-instance-profile.name}" } From c4fe188a2f16bcc77af80cf0587a4a2eaf107216 Mon Sep 17 00:00:00 2001 From: iuri aranda Date: Tue, 25 Apr 2017 10:16:24 +0200 Subject: [PATCH 2/2] Added cluster_id output in the docs --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7abeeb7..ea4f8b7 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Setup a basic ECS cluster with the needed IAM rights. * [`environment`]: String(required): For what environment is this cluster needed (eg staging, production, ...) ### Output * [`cluster_name`]: String: The name of the ECS cluster. + * [`cluster_id`]: String: The ID (ARN) of the ECS cluster. * [`ecs-instance-profile`]: IAM instance profile that you need to give to your instances. * [`ecs-service-role`]: IAM service role for you ECS to manage your loadbalancers