Skip to content

Commit

Permalink
Rebase to master
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Lisowski committed May 7, 2020
1 parent d74b757 commit 695030c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worker_groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ data "null_data_source" "worker_groups" {
## Cannot use cluster_name to check dependency due to resources cycle:
## Error: Cycle: module.eks.module.worker_groups.aws_iam_instance_profile.workers, module.eks.module.worker_groups.output.aws_auth_roles, module.eks.local.configmap_roles, module.eks.kubernetes_config_map.aws_auth, module.eks.data.null_data_source.worker_groups, module.eks.module.worker_groups.var.cluster_name
##
# cluster_name = aws_eks_cluster.this[0].name
cluster_endpoint = aws_eks_cluster.this[0].endpoint
# cluster_name = coalescelist(aws_eks_cluster.this[*].name, [""])[0]
cluster_endpoint = coalescelist(aws_eks_cluster.this[*].endpoint, [""])[0]
cluster_auth_base64 = aws_eks_cluster.this[0].certificate_authority[0].data

# Ensure these resources are created before "unlocking" the data source.
Expand All @@ -26,7 +26,7 @@ module "worker_groups" {

create_eks = var.create_eks

cluster_name = aws_eks_cluster.this[0].name
cluster_name = coalescelist(aws_eks_cluster.this[*].name, [""])[0]
cluster_endpoint = coalescelist(data.null_data_source.worker_groups[*].outputs["cluster_endpoint"], [""])[0]
cluster_auth_base64 = coalescelist(data.null_data_source.worker_groups[*].outputs["cluster_auth_base64"], [""])[0]

Expand Down

0 comments on commit 695030c

Please sign in to comment.