From 37d0840341010d94e4201b42f6395d7c37527143 Mon Sep 17 00:00:00 2001
From: Danny Gershman <danny@radiusmethod.com>
Date: Fri, 3 Feb 2023 21:36:18 +0000
Subject: [PATCH] Automatically pull the latest image that matches the current
 parameters from AWS Marketplace

---
 docs/assets/scripts/developer/k3d-dev.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/assets/scripts/developer/k3d-dev.sh b/docs/assets/scripts/developer/k3d-dev.sh
index 4bcb75eab2..f0ebaffad0 100755
--- a/docs/assets/scripts/developer/k3d-dev.sh
+++ b/docs/assets/scripts/developer/k3d-dev.sh
@@ -8,7 +8,7 @@ fi
 
 if [[ -z "${AMI_ID}" ]]; then
   # default
-  AMI_ID=ami-0126fb88475632215
+  AMI_ID=$(aws ec2 describe-images --filters Name=owner-alias,Values=aws-marketplace Name=architecture,Values=x86_64 Name=name,Values="ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*" --query 'sort_by(Images, &CreationDate)[].ImageId | [0]' --output text)
 fi
 
 #### Preflight Checks
-- 
GitLab