fix: Updated code and version requirements to work with Terraform 0.15 (#1165)

This commit is contained in:
Tjeu Kayim
2021-04-16 09:56:37 +02:00
committed by GitHub
parent a26c9fd0c9
commit 2a6f07a0e8
33 changed files with 530 additions and 443 deletions

View File

@@ -100,7 +100,7 @@ resource "aws_autoscaling_group" "workers_launch_template" {
dynamic "mixed_instances_policy" {
iterator = item
for_each = (lookup(var.worker_groups_launch_template[count.index], "override_instance_types", null) != null) || (lookup(var.worker_groups_launch_template[count.index], "on_demand_allocation_strategy", local.workers_group_defaults["on_demand_allocation_strategy"]) != null) ? list(var.worker_groups_launch_template[count.index]) : []
for_each = (lookup(var.worker_groups_launch_template[count.index], "override_instance_types", null) != null) || (lookup(var.worker_groups_launch_template[count.index], "on_demand_allocation_strategy", local.workers_group_defaults["on_demand_allocation_strategy"]) != null) ? [var.worker_groups_launch_template[count.index]] : []
content {
instances_distribution {