mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-11 03:26:50 +02: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:
committed by
Max Williams
parent
87114b0bd0
commit
d473b71024
10
outputs.tf
10
outputs.tf
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user