Skip to content

Commit

Permalink
Add dependency to ensure proper destruction order
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Dec 23, 2023
1 parent b8d3f34 commit 94d80af
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_eks_cluster" "kubernetes_cluster" {
name = var.cluster_name
role_arn = aws_iam_role.dss-cluster.arn

vpc_config {
subnet_ids = aws_subnet.dss[*].id
endpoint_public_access = true
Expand Down Expand Up @@ -39,4 +39,9 @@ resource "aws_eks_node_group" "eks_node_group" {
lifecycle {
create_before_destroy = true
}

depends_on = [
aws_eip.gateway,
aws_eip.ip_crdb
]
}

0 comments on commit 94d80af

Please sign in to comment.