Skip to content

Commit 72de4fc

Browse files
committed
fix: also Wait longer for instance state transitions
1 parent 7886a12 commit 72de4fc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

amazon-arm64-nix.pkr.hcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ source "amazon-ebssurrogate" "source" {
115115
#secret_key = "${var.aws_secret_key}"
116116
force_deregister = var.force-deregister
117117

118+
# Increase timeout for instance stop operations to handle large instances
119+
aws_polling {
120+
delay_seconds = 15
121+
max_attempts = 120 # 120 * 15s = 30 minutes max wait
122+
}
123+
118124
# Use latest official ubuntu noble ami owned by Canonical.
119125
source_ami_filter {
120126
filters = {

stage2-nix-psql.pkr.hcl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ source "amazon-ebs" "ubuntu" {
8181

8282
associate_public_ip_address = true
8383

84+
# Increase timeout for instance stop operations to handle large instances
85+
aws_polling {
86+
delay_seconds = 15
87+
max_attempts = 120 # 120 * 15s = 30 minutes max wait
88+
}
8489

8590
ena_support = true
8691

0 commit comments

Comments
 (0)