Skip to content

Commit 607d4a1

Browse files
dallinstevensbryantbiggs
authored andcommitted
adding wrapper and examples
1 parent 6eb4555 commit 607d4a1

File tree

2 files changed

+15
-0
lines changed
  • examples/iam-role-for-service-accounts-eks
  • wrappers/iam-role-for-service-accounts-eks

2 files changed

+15
-0
lines changed

examples/iam-role-for-service-accounts-eks/main.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,20 @@ module "fsx_lustre_csi_irsa_role" {
205205
}
206206
}
207207

208+
module "fsx_openzfs_csi_irsa_role" {
209+
source = "../../modules/iam-role-for-service-accounts-eks"
210+
211+
role_name = "fsx-openzfs-csi"
212+
attach_fsx_openzfs_csi_policy = true
213+
214+
oidc_providers = {
215+
ex = {
216+
provider_arn = module.eks.oidc_provider_arn
217+
namespace_service_accounts = ["kube-system:fsx-csi-controller-sa"]
218+
}
219+
}
220+
}
221+
208222
module "karpenter_controller_irsa_role" {
209223
source = "../../modules/iam-role-for-service-accounts-eks"
210224

wrappers/iam-role-for-service-accounts-eks/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module "wrapper" {
1818
attach_external_dns_policy = try(each.value.attach_external_dns_policy, var.defaults.attach_external_dns_policy, false)
1919
attach_external_secrets_policy = try(each.value.attach_external_secrets_policy, var.defaults.attach_external_secrets_policy, false)
2020
attach_fsx_lustre_csi_policy = try(each.value.attach_fsx_lustre_csi_policy, var.defaults.attach_fsx_lustre_csi_policy, false)
21+
attach_fsx_openzfs_csi_policy = try(each.value.attach_fsx_openzfs_csi_policy, var.defaults.attach_fsx_openzfs_csi_policy, false)
2122
attach_karpenter_controller_policy = try(each.value.attach_karpenter_controller_policy, var.defaults.attach_karpenter_controller_policy, false)
2223
attach_load_balancer_controller_policy = try(each.value.attach_load_balancer_controller_policy, var.defaults.attach_load_balancer_controller_policy, false)
2324
attach_load_balancer_controller_targetgroup_binding_only_policy = try(each.value.attach_load_balancer_controller_targetgroup_binding_only_policy, var.defaults.attach_load_balancer_controller_targetgroup_binding_only_policy, false)

0 commit comments

Comments
 (0)