Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 16, 2023
1 parent 48dc030 commit 9a1d5f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/efs-persistent-volumes/efs-access-points.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_efs_access_point" "efs_ap" {
for_each = { for ap in local.efs_access_points : ap.name => ap }
for_each = { for ap in local.efs_access_points : ap.label => ap }
file_system_id = module.efs.id
root_directory {
path = each.value.path
Expand All @@ -19,7 +19,7 @@ resource "aws_efs_access_point" "efs_ap" {
}

resource "kubernetes_persistent_volume" "efs_ap" {
for_each = { for ap in local.efs_access_points : ap.name => ap }
for_each = { for ap in local.efs_access_points : ap.label => ap }
metadata {
name = format("efs-%v-pv", each.key)
}
Expand All @@ -45,7 +45,7 @@ resource "kubernetes_persistent_volume" "efs_ap" {
}

resource "kubernetes_persistent_volume_claim" "efs_ap" {
for_each = { for ap in local.efs_access_points : ap.name => ap }
for_each = { for ap in local.efs_access_points : ap.label => ap }
metadata {
name = format("%v-%v-%v-claim", var.cluster_name, each.value.claim_namespace, each.value.claim_name)
namespace = format("%v-%v", var.cluster_name, each.value.claim_namespace)
Expand Down

0 comments on commit 9a1d5f3

Please sign in to comment.