Skip to content

Commit

Permalink
fix reference since working with counts
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerjrr committed Nov 1, 2024
1 parent 8e8fef1 commit 5fe5d43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/k8s-rbac/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ resource "kubernetes_cluster_role_binding" "readonly_binding" {
role_ref {
api_group = "rbac.authorization.k8s.io"
kind = "ClusterRole"
name = kubernetes_cluster_role.common_fate_readonly.metadata.name
name = kubernetes_cluster_role.common_fate_readonly[count.index].metadata[0].name
}

subject {
Expand All @@ -96,7 +96,7 @@ resource "kubernetes_cluster_role_binding" "admin_binding" {
role_ref {
api_group = "rbac.authorization.k8s.io"
kind = "ClusterRole"
name = kubernetes_cluster_role.common_fate_admin.metadata.name
name = kubernetes_cluster_role.common_fate_admin[count.index].metadata[0].name
}

subject {
Expand Down

0 comments on commit 5fe5d43

Please sign in to comment.