Skip to content

Commit

Permalink
fix: fix the policies deletion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jdongo-aneo committed Oct 9, 2024
1 parent b57529a commit c8d8590
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubernetes/aws/eks/efs-csi.tf
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ resource "aws_iam_role" "efs_csi_driver" {
}
]
})
tags = local.tags
tags = local.tags
depends_on = [aws_iam_policy.efs_csi_driver]
}

resource "aws_iam_role_policy_attachment" "efs_csi_driver" {
Expand Down
1 change: 1 addition & 0 deletions kubernetes/aws/eks/instance-refresh.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module "aws_node_termination_handler_role" {
provider_url = replace(module.eks.cluster_oidc_issuer_url, "https://", "")
role_policy_arns = [aws_iam_policy.aws_node_termination_handler.arn]
oidc_fully_qualified_subjects = ["system:serviceaccount:kube-system:aws-node-termination-handler"]
depends_on = [aws_iam_policy.aws_node_termination_handler]
}

resource "aws_cloudwatch_event_rule" "aws_node_termination_handler_asg" {
Expand Down

0 comments on commit c8d8590

Please sign in to comment.