mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-13 05:45:12 +01:00
fix: bug with data source in managed groups submodule (#1633)
This commit is contained in:
committed by
GitHub
parent
f198efd2c4
commit
54a5f1e42b
@@ -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}"])}" : ""
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
data "aws_eks_cluster" "default" {
|
||||
count = var.create_eks ? 1 : 0
|
||||
|
||||
name = var.cluster_name
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user