feat: Removed ng_depends_on variable and related hack (#1672)

This commit is contained in:
Dawid Rogaczewski
2021-11-06 20:19:03 +01:00
committed by GitHub
parent fb3a7ce450
commit 56e93d77de
4 changed files with 1 additions and 17 deletions

View File

@@ -18,14 +18,8 @@ module "node_groups" {
tags = var.tags
# Hack to ensure ordering of resource creation.
# This is a homemade `depends_on` https://discuss.hashicorp.com/t/tips-howto-implement-module-depends-on-emulation/2305/2
# Do not create node_groups before other resources are ready and removes race conditions
# Ensure these resources are created before "unlocking" the data source.
# Will be removed in Terraform 0.13
ng_depends_on = [
depends_on = [
aws_eks_cluster.this,
kubernetes_config_map.aws_auth,
aws_iam_role_policy_attachment.workers_AmazonEKSWorkerNodePolicy,
aws_iam_role_policy_attachment.workers_AmazonEKS_CNI_Policy,
aws_iam_role_policy_attachment.workers_AmazonEC2ContainerRegistryReadOnly