mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-11-14 15:03:28 +01:00
fixed specifying cluster and worker security group
This commit is contained in:
1 parent
c5b637ac0f
commit
59ced5fdb4
1 file changed
+4
-2
@@ -1,7 +1,9 @@
|
||||
locals {
|
||||
asg_tags = ["${null_resource.tags_as_list_of_maps.*.triggers}"]
|
||||
cluster_security_group_id = "${var.cluster_security_group_id == "" ? aws_security_group.cluster.id : var.cluster_security_group_id}"
|
||||
worker_security_group_id = "${var.worker_security_group_id == "" ? aws_security_group.workers.id : var.worker_security_group_id}"
|
||||
|
||||
# Followed recommendation http://67bricks.com/blog/?p=85 to workaround terraform not supporting short circut evaluation
|
||||
cluster_security_group_id = "${coalesce(join("", aws_security_group.cluster.*.id), var.cluster_security_group_id)}"
|
||||
worker_security_group_id = "${coalesce(join("", aws_security_group.workers.*.id), var.cluster_security_group_id)}"
|
||||
workstation_external_cidr = "${chomp(data.http.workstation_external_ip.body)}/32"
|
||||
|
||||
# Mapping from the node type that we selected and the max number of pods that it can run
|
||||
|
||||
Reference in new issue
Block a user