From dc837eddb5a24fc702f8329c7fbd0a8dcd51d7ef Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:25:02 +0200 Subject: [PATCH] cli: temporarily increase AWS ASG creation timeout (#2340) * increase ASG timeout Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * make timeout dependent on SEV-SNP option Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --- .../terraform/terraform/aws/modules/instance_group/main.tf | 5 +++++ 1 file changed, 5 insertions(+) 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 6655b1f4e5..bc491389e5 100644 --- a/cli/internal/terraform/terraform/aws/modules/instance_group/main.tf +++ b/cli/internal/terraform/terraform/aws/modules/instance_group/main.tf @@ -84,6 +84,11 @@ resource "aws_autoscaling_group" "autoscaling_group" { vpc_zone_identifier = [var.subnetwork] target_group_arns = var.target_group_arns + # 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 = var.enable_snp ? "20m" : "10m" + dynamic "tag" { for_each = var.tags content {