what
- Fix value of 'count' cannot be computed errors
why
- Some resources from
terraform-aws-eks-cluster
depended onterraform-aws-eks-workers
, while some resources fromterraform-aws-eks-workers
depended onterraform-aws-eks-cluster
, producing cyclical dependencies and errors "value of 'count' cannot be computed" - Decoupled the depended resources
references
- https://docs.cloudposse.com/faq/terraform-value-of-count-cannot-be-computed/
- https://www.terraform.io/docs/providers/aws/guides/eks-getting-started.html#preparation
- https://www.terraform.io/docs/providers/aws/guides/eks-getting-started.html#configuring-kubectl-for-eks
- https://www.terraform.io/docs/providers/aws/guides/eks-getting-started.html#required-kubernetes-configuration-to-join-worker-nodes