From 9b34f99a23df852112da7dc1bc658dbd64708e60 Mon Sep 17 00:00:00 2001 From: Igor D'Astolfo Date: Thu, 10 Sep 2020 01:46:54 +0200 Subject: [PATCH] Expose ec2 role (#27) --- README.md | 1 + docs/terraform.md | 1 + outputs.tf | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 1ddfcbb..961449f 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ Available targets: |------|-------------| | cluster\_id | EMR cluster ID | | cluster\_name | EMR cluster name | +| ec2\_role | Role name of EMR EC2 instances so users can attach more policies | | master\_host | Name of the cluster CNAME record for the master nodes in the parent DNS zone | | master\_public\_dns | Master public DNS | | master\_security\_group\_id | Master security group ID | diff --git a/docs/terraform.md b/docs/terraform.md index 355be80..09404b9 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -90,6 +90,7 @@ |------|-------------| | cluster\_id | EMR cluster ID | | cluster\_name | EMR cluster name | +| ec2\_role | Role name of EMR EC2 instances so users can attach more policies | | master\_host | Name of the cluster CNAME record for the master nodes in the parent DNS zone | | master\_public\_dns | Master public DNS | | master\_security\_group\_id | Master security group ID | diff --git a/outputs.tf b/outputs.tf index bd9b699..f421d24 100644 --- a/outputs.tf +++ b/outputs.tf @@ -27,3 +27,8 @@ output "master_host" { value = module.dns_master.hostname description = "Name of the cluster CNAME record for the master nodes in the parent DNS zone" } + +output "ec2_role" { + value = join("", aws_iam_role.ec2.*.name) + description = "Role name of EMR EC2 instances so users can attach more policies" +} \ No newline at end of file