Skip to content

Commit 9b34f99

Browse files
authored
Expose ec2 role (#27)
1 parent a54de68 commit 9b34f99

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ Available targets:
257257
|------|-------------|
258258
| cluster\_id | EMR cluster ID |
259259
| cluster\_name | EMR cluster name |
260+
| ec2\_role | Role name of EMR EC2 instances so users can attach more policies |
260261
| master\_host | Name of the cluster CNAME record for the master nodes in the parent DNS zone |
261262
| master\_public\_dns | Master public DNS |
262263
| master\_security\_group\_id | Master security group ID |

docs/terraform.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
|------|-------------|
9191
| cluster\_id | EMR cluster ID |
9292
| cluster\_name | EMR cluster name |
93+
| ec2\_role | Role name of EMR EC2 instances so users can attach more policies |
9394
| master\_host | Name of the cluster CNAME record for the master nodes in the parent DNS zone |
9495
| master\_public\_dns | Master public DNS |
9596
| master\_security\_group\_id | Master security group ID |

outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ output "master_host" {
2727
value = module.dns_master.hostname
2828
description = "Name of the cluster CNAME record for the master nodes in the parent DNS zone"
2929
}
30+
31+
output "ec2_role" {
32+
value = join("", aws_iam_role.ec2.*.name)
33+
description = "Role name of EMR EC2 instances so users can attach more policies"
34+
}

0 commit comments

Comments
 (0)