From 5c51e0d8ab60e6133b88ef0fe115b2f7a4851c23 Mon Sep 17 00:00:00 2001 From: Arsenii Petrovich Date: Fri, 22 Nov 2019 15:14:18 +0200 Subject: [PATCH] Remove incompatible variable There is a bug in TF script that lead to the inconsistent changes being made using script. The solution is, according to the Terraform official docs, to delete one of the `availability_zones` or `vpc_link_identifier` variables. --- roles/main_infra/files/hosts.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/main_infra/files/hosts.tf b/roles/main_infra/files/hosts.tf index 8b783e3..e11630f 100644 --- a/roles/main_infra/files/hosts.tf +++ b/roles/main_infra/files/hosts.tf @@ -49,7 +49,6 @@ resource "aws_autoscaling_group" "explorer" { desired_capacity = "1" launch_configuration = aws_launch_configuration.explorer.name vpc_zone_identifier = [aws_subnet.default.id] - availability_zones = data.aws_availability_zones.available.names target_group_arns = [aws_lb_target_group.explorer[0].arn] placement_group = var.use_placement_group[var.chains[count.index]] == "True" ? "${var.prefix}-${var.chains[count.index]}-explorer-pg" : null