1
0
mirror of https://github.com/terraform-aws-modules/terraform-aws-eks.git synced 2025-09-09 19:32:58 +08:00

Add outputs for cluster role ARN and name (#290)

This enables attaching additional policies, e.g. for using
encrypted volumes, to the cluster.

Signed-off-by: Steffen Pingel <steffen.pingel@tasktop.com>
This commit is contained in:
Steffen Pingel
2019-03-05 08:54:09 +01:00
committed by Max Williams
parent 87114b0bd0
commit d473b71024
3 changed files with 13 additions and 0 deletions
+10
View File
@@ -34,6 +34,16 @@ output "config_map_aws_auth" {
value = "${data.template_file.config_map_aws_auth.rendered}"
}
output "cluster_iam_role_name" {
description = "IAM role name of the EKS cluster."
value = "${aws_iam_role.cluster.name}"
}
output "cluster_iam_role_arn" {
description = "IAM role ARN of the EKS cluster."
value = "${aws_iam_role.cluster.arn}"
}
output "kubeconfig" {
description = "kubectl config file contents for this EKS cluster."
value = "${data.template_file.kubeconfig.rendered}"