fix: bug with data source in managed groups submodule (#1633)

This commit is contained in:
Dawid Rogaczewski
2021-10-12 12:45:41 +02:00
committed by GitHub
parent f198efd2c4
commit 54a5f1e42b
2 changed files with 4 additions and 2 deletions

View File

@@ -14,8 +14,8 @@ data "cloudinit_config" "workers_userdata" {
ami_id = lookup(each.value, "ami_id", "")
ami_is_eks_optimized = each.value["ami_is_eks_optimized"]
cluster_name = var.cluster_name
cluster_endpoint = data.aws_eks_cluster.default.endpoint
cluster_ca = data.aws_eks_cluster.default.certificate_authority[0].data
cluster_endpoint = data.aws_eks_cluster.default[0].endpoint
cluster_ca = data.aws_eks_cluster.default[0].certificate_authority[0].data
capacity_type = lookup(each.value, "capacity_type", "ON_DEMAND")
append_labels = length(lookup(each.value, "k8s_labels", {})) > 0 ? ",${join(",", [for k, v in lookup(each.value, "k8s_labels", {}) : "${k}=${v}"])}" : ""
}