Skip to content

Commit 3d24799

Browse files
authored
fix: Add node group dependency for EKS addons resource creation (#1840)
1 parent a2cc086 commit 3d24799

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ resource "aws_eks_addon" "this" {
234234
]
235235
}
236236

237+
# Note: if an addon needs to be provisioned ahead of a node group users will
238+
# need to create the addon outside of this module until a 2nd addon resource is added
239+
# to the module (here) that is not dependent on node groups
240+
# Or if addon management improves, this dependency can be removed https://github.com/aws/containers-roadmap/issues/1389
241+
depends_on = [
242+
module.fargate_profile,
243+
module.eks_managed_node_group,
244+
module.self_managed_node_group,
245+
]
246+
237247
tags = var.tags
238248
}
239249

0 commit comments

Comments
 (0)