From 1dd7c40b9dec1aec1a867db365b4db3ef32c8f2a Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Fri, 15 Sep 2023 16:00:14 +0200 Subject: [PATCH] make timeout dependent on SEV-SNP option Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --- .../terraform/terraform/aws/modules/instance_group/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/internal/terraform/terraform/aws/modules/instance_group/main.tf b/cli/internal/terraform/terraform/aws/modules/instance_group/main.tf index 7cbad5d605f..bc491389e5d 100644 --- a/cli/internal/terraform/terraform/aws/modules/instance_group/main.tf +++ b/cli/internal/terraform/terraform/aws/modules/instance_group/main.tf @@ -87,7 +87,7 @@ resource "aws_autoscaling_group" "autoscaling_group" { # TODO(msanft): Remove this (to have the 10m default) once AWS SEV-SNP boot problems are resolved. # Set a higher timeout for the ASG to fulfill the desired healthy capcity. Temporary workaround to # long boot times on SEV-SNP machines on AWS. - wait_for_capacity_timeout = "20m" + wait_for_capacity_timeout = var.enable_snp ? "20m" : "10m" dynamic "tag" { for_each = var.tags