Skip to content

Commit

Permalink
fix terraform errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zachrundle committed Aug 18, 2024
1 parent 1ccb5f6 commit a5cdaca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/eks/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "aws_eks_cluster" "this" {
name = var.cluster_name
role_arn = aws_iam_role.example.arn
role_arn = aws_iam_role.this.arn
count = var.create_eks ? 1 : 0
version = var.cluster_version

Expand All @@ -17,8 +17,8 @@ resource "aws_eks_cluster" "this" {
# Ensure that IAM Role permissions are created before and deleted after EKS Cluster handling.
# Otherwise, EKS will not be able to properly delete EKS managed EC2 infrastructure such as Security Groups.
depends_on = [
aws_iam_role_policy_attachment.example-AmazonEKSClusterPolicy,
aws_iam_role_policy_attachment.example-AmazonEKSVPCResourceController,
aws_iam_role_policy_attachment.AmazonEKSClusterPolicy,
aws_iam_role_policy_attachment.AmazonEKSVPCResourceController,
]
}

0 comments on commit a5cdaca

Please sign in to comment.