UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 37d08403 authored by Danny Gershman's avatar Danny Gershman :lock: Committed by Micah Nagel
Browse files

Automatically pull the latest image that matches the current parameters from AWS Marketplace

parent 2edb320d
No related branches found
No related tags found
1 merge request!2471Automatically pull the latest image that matches the current parameters from AWS Marketplace
......@@ -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
......
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