chore: Fix terraform format for TF 0.14 (#1157)

This commit is contained in:
Thierno IB. BARRY
2020-12-22 11:32:13 +01:00
committed by GitHub
parent 942a88e18f
commit ea2f6982d5
4 changed files with 11 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ resource "aws_eks_cluster" "this" {
delete = var.cluster_delete_timeout delete = var.cluster_delete_timeout
} }
dynamic encryption_config { dynamic "encryption_config" {
for_each = toset(var.cluster_encryption_config) for_each = toset(var.cluster_encryption_config)
content { content {

View File

@@ -93,7 +93,7 @@ resource "aws_autoscaling_group" "workers_launch_template" {
local.workers_group_defaults["health_check_grace_period"] local.workers_group_defaults["health_check_grace_period"]
) )
dynamic mixed_instances_policy { dynamic "mixed_instances_policy" {
iterator = item 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) ? list(var.worker_groups_launch_template[count.index]) : []
@@ -157,7 +157,7 @@ resource "aws_autoscaling_group" "workers_launch_template" {
} }
} }
dynamic launch_template { dynamic "launch_template" {
iterator = item 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) ? [] : list(var.worker_groups_launch_template[count.index])
@@ -336,7 +336,7 @@ resource "aws_launch_template" "workers_launch_template" {
) )
} }
dynamic placement { dynamic "placement" {
for_each = lookup(var.worker_groups_launch_template[count.index], "launch_template_placement_group", local.workers_group_defaults["launch_template_placement_group"]) != null ? [lookup(var.worker_groups_launch_template[count.index], "launch_template_placement_group", local.workers_group_defaults["launch_template_placement_group"])] : [] for_each = lookup(var.worker_groups_launch_template[count.index], "launch_template_placement_group", local.workers_group_defaults["launch_template_placement_group"]) != null ? [lookup(var.worker_groups_launch_template[count.index], "launch_template_placement_group", local.workers_group_defaults["launch_template_placement_group"])] : []
content { content {
@@ -349,7 +349,7 @@ resource "aws_launch_template" "workers_launch_template" {
} }
} }
dynamic instance_market_options { dynamic "instance_market_options" {
for_each = lookup(var.worker_groups_launch_template[count.index], "market_type", null) == null ? [] : list(lookup(var.worker_groups_launch_template[count.index], "market_type", null)) for_each = lookup(var.worker_groups_launch_template[count.index], "market_type", null) == null ? [] : list(lookup(var.worker_groups_launch_template[count.index], "market_type", null))
content { content {
market_type = instance_market_options.value market_type = instance_market_options.value