Skip to content

Commit 0b181cf

Browse files
committed
Add debug job to list existing AMIs
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 78d3420 commit 0b181cf

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ami-prebuild.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,41 @@ env:
4040
AWS_REGION: eu-west-1
4141

4242
jobs:
43+
debug-amis:
44+
name: "Debug: List existing AMIs"
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Configure AWS Credentials
48+
uses: aws-actions/configure-aws-credentials@v4
49+
with:
50+
role-to-assume: arn:aws:iam::375504701696:role/GitHubBenchmarkRole
51+
aws-region: ${{ env.AWS_REGION }}
52+
53+
- name: List vortex-ci AMIs
54+
run: |
55+
echo "=== x64 AMIs ==="
56+
aws ec2 describe-images \
57+
--owners 375504701696 \
58+
--filters "Name=name,Values=vortex-ci-x64-*" \
59+
--query 'Images[*].[Name,ImageId,CreationDate,State]' \
60+
--output table || echo "No x64 AMIs found"
61+
62+
echo ""
63+
echo "=== arm64 AMIs ==="
64+
aws ec2 describe-images \
65+
--owners 375504701696 \
66+
--filters "Name=name,Values=vortex-ci-arm64-*" \
67+
--query 'Images[*].[Name,ImageId,CreationDate,State]' \
68+
--output table || echo "No arm64 AMIs found"
69+
70+
echo ""
71+
echo "=== runs-on base AMIs (for reference) ==="
72+
aws ec2 describe-images \
73+
--owners 135269210855 \
74+
--filters "Name=name,Values=runs-on-v2.2-ubuntu24-full-x64-*" \
75+
--query 'Images | sort_by(@, &CreationDate) | [-1].[Name,ImageId,CreationDate]' \
76+
--output table || echo "Cannot read runs-on AMIs"
77+
4378
build-x64:
4479
name: "Build AMI (x64)"
4580
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.arch == '' || github.event.inputs.arch == 'x64' }}

0 commit comments

Comments
 (0)