UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 48c96c6f authored by Ryan Garcia's avatar Ryan Garcia :dizzy:
Browse files

Merge branch '1535-k3d-dev-ami' into 'master'

Fix k3d-dev.sh default AMI selection

Closes #1535

See merge request !2834
parents 777748a0 47641680
No related branches found
No related tags found
1 merge request!2834Fix k3d-dev.sh default AMI selection
......@@ -28,7 +28,7 @@ fi
if [[ -z "${AMI_ID}" ]]; then
# default
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)
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 'max_by(Images, &CreationDate).ImageId' --output text)
fi
#### Preflight Checks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment