@@ -16,7 +16,7 @@ locals {
16
16
}
17
17
})
18
18
pod_identity_association = [{
19
- role_arn = one (module. aws_vpc_cni_pod_identity [0 ]. iam_role_arn )
19
+ role_arn = try (module. aws_vpc_cni_pod_identity [0 ]. iam_role_arn , null )
20
20
service_account = " aws-node"
21
21
}]
22
22
}
@@ -35,18 +35,18 @@ locals {
35
35
}
36
36
}
37
37
})
38
- service_account_role_arn = one (module. vpc_cni_irsa_role [0 ]. iam_role_arn )
38
+ service_account_role_arn = try (module. vpc_cni_irsa_role [0 ]. iam_role_arn , null )
39
39
}
40
40
nodegroup_irsa = {
41
41
most_recent = true
42
42
resolve_conflicts_on_update = " OVERWRITE"
43
- service_account_role_arn = one (module. vpc_cni_irsa_role [0 ]. iam_role_arn )
43
+ service_account_role_arn = try (module. vpc_cni_irsa_role [0 ]. iam_role_arn , null )
44
44
}
45
45
nodegroup_pod_identity = {
46
46
most_recent = true
47
47
resolve_conflicts_on_update = " OVERWRITE"
48
48
pod_identity_association = [{
49
- role_arn = one (module. aws_vpc_cni_pod_identity [0 ]. iam_role_arn )
49
+ role_arn = try (module. aws_vpc_cni_pod_identity [0 ]. iam_role_arn , null )
50
50
service_account = " aws-node"
51
51
}]
52
52
}
@@ -62,14 +62,14 @@ locals {
62
62
most_recent = true
63
63
resolve_conflicts_on_update = " OVERWRITE"
64
64
pod_identity_association = [{
65
- role_arn = one (module. aws_ebs_csi_pod_identity [0 ]. iam_role_arn )
65
+ role_arn = try (module. aws_ebs_csi_pod_identity [0 ]. iam_role_arn , null )
66
66
service_account = " ebs-csi-controller-sa"
67
67
}]
68
68
}
69
69
irsa = {
70
70
most_recent = true
71
71
resolve_conflicts_on_update = " OVERWRITE"
72
- service_account_role_arn = one (module. ebs_csi_irsa_role [0 ]. iam_role_arn )
72
+ service_account_role_arn = try (module. ebs_csi_irsa_role [0 ]. iam_role_arn , null )
73
73
}
74
74
}
75
75
addon_aws_ebs_csi_driver_lookup = var. enable_pod_identity_for_eks_addons ? " pod_identity" : " irsa"
0 commit comments