Skip to content

Commit 3d35d18

Browse files
swibi-ttdclaude
andcommitted
pin AWS operator AMI base image to last known-good AL2023
The latest AL2023 base image (most_recent=true) regressed SSM session stability: the Packer build hangs on a task transition until SSM's 20-min idle timeout fires, then dies with StartSession 403 (no AMI produced). Pin source_ami per region to the May 25 green build: us-east-1 (UID2) ami-0236922087fa98b6e eu-central-1 (EUID) ami-08b013271cfc23534 The most_recent filter is left commented in source.pkr.hcl for an easy revert once the SSM connection regression is resolved. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8134f1d commit 3d35d18

4 files changed

Lines changed: 22 additions & 8 deletions

File tree

scripts/aws/uid2-operator-ami/euid.pkrvars.hcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
region = "eu-central-1"
22
identity_scope = "euid"
3+
# Pinned to last known-good AL2023 base (May 25 green build); see source.pkr.hcl
4+
source_ami = "ami-08b013271cfc23534"
35
subnet_id = "subnet-0edbf47b073de1c79"
46
vpc_id = "vpc-065000fb9082c6a90"
57
ami_ou_arns = [

scripts/aws/uid2-operator-ami/source.pkr.hcl

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
source "amazon-ebs" "linux" {
22

33
# source parameters
4-
source_ami_filter {
5-
filters = {
6-
name = "al2023-ami-2023*-x86_64"
7-
root-device-type = "ebs"
8-
}
9-
most_recent = true
10-
owners = ["amazon"]
11-
}
4+
# TEMPORARY PIN (swi-fix-ami-timeout): the latest AL2023 base image regressed SSM
5+
# session stability, hanging the Packer build until SSM's 20-min idle timeout fires.
6+
# Pinned to the last known-good base AMI (May 25 green build) per region, set in the
7+
# *.pkrvars.hcl files. Revert to the most_recent filter below once the SSM connection
8+
# issue is resolved.
9+
source_ami = var.source_ami
10+
# source_ami_filter {
11+
# filters = {
12+
# name = "al2023-ami-2023*-x86_64"
13+
# root-device-type = "ebs"
14+
# }
15+
# most_recent = true
16+
# owners = ["amazon"]
17+
# }
1218

1319
# disable ami creation for testing
1420
# skip_create_ami = true

scripts/aws/uid2-operator-ami/uid2.pkrvars.hcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
region = "us-east-1"
22
identity_scope = "uid2"
3+
# Pinned to last known-good AL2023 base (May 25 green build); see source.pkr.hcl
4+
source_ami = "ami-0236922087fa98b6e"
35
# Default VPC in us-east-1
46
vpc_id = "vpc-ec832d91"
57
subnet_id = "subnet-99019ec6"

scripts/aws/uid2-operator-ami/vars.pkr.hcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ variable "region" {
1818
default = "us-east-1"
1919
}
2020

21+
variable "source_ami" {
22+
description = "Base AMI to build on. Pinned per region in *.pkrvars.hcl while the latest AL2023 image has the SSM session-stability regression (swi-fix-ami-timeout)."
23+
}
24+
2125
variable "instance_type" {
2226
description = "instance type to build on"
2327
default = "m5.2xlarge"

0 commit comments

Comments
 (0)