mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-18 09:38:33 +01:00
fix: Sub-modules output the correct eks worker iam arn when workers utilize custom iam role (#1912)
This commit is contained in:
@@ -66,7 +66,7 @@ output "iam_role_name" {
|
|||||||
|
|
||||||
output "iam_role_arn" {
|
output "iam_role_arn" {
|
||||||
description = "The Amazon Resource Name (ARN) specifying the IAM role"
|
description = "The Amazon Resource Name (ARN) specifying the IAM role"
|
||||||
value = try(aws_iam_role.this[0].arn, "")
|
value = try(aws_iam_role.this[0].arn, var.iam_role_arn)
|
||||||
}
|
}
|
||||||
|
|
||||||
output "iam_role_unique_id" {
|
output "iam_role_unique_id" {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ output "iam_role_name" {
|
|||||||
|
|
||||||
output "iam_role_arn" {
|
output "iam_role_arn" {
|
||||||
description = "The Amazon Resource Name (ARN) specifying the IAM role"
|
description = "The Amazon Resource Name (ARN) specifying the IAM role"
|
||||||
value = try(aws_iam_role.this[0].arn, "")
|
value = try(aws_iam_role.this[0].arn, var.iam_role_arn)
|
||||||
}
|
}
|
||||||
|
|
||||||
output "iam_role_unique_id" {
|
output "iam_role_unique_id" {
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ output "iam_role_unique_id" {
|
|||||||
|
|
||||||
output "iam_instance_profile_arn" {
|
output "iam_instance_profile_arn" {
|
||||||
description = "ARN assigned by AWS to the instance profile"
|
description = "ARN assigned by AWS to the instance profile"
|
||||||
value = try(aws_iam_instance_profile.this[0].arn, "")
|
value = try(aws_iam_instance_profile.this[0].arn, var.iam_instance_profile_arn)
|
||||||
}
|
}
|
||||||
|
|
||||||
output "iam_instance_profile_id" {
|
output "iam_instance_profile_id" {
|
||||||
|
|||||||
Reference in New Issue
Block a user