UNCLASSIFIED - NO CUI

Skip to content

Fix k3d-dev.sh default AMI selection

Ben Francis requested to merge 1535-k3d-dev-ami into master

Package Merge Request

Package Changes

Line 31 query in k3d-dev.sh gets changed from a sort_by to a max_by function:

  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)

This change updates 186 packages that have changed since 2022-05-11. 105 were security related.

Package MR

!2834 (merged)

For Issue

Closes https://repo1.dso.mil/big-bang/bigbang/-/issues/1535

Test Case

➜  bigbang git:(1535-k3d-dev-ami) ./docs/assets/scripts/developer/k3d-dev.sh 
AWS User Name: Ben.Francis
Checking for existing cluster for Ben.Francis.
Will use standard t3a.2xlarge spot instance
Checking if key pair Ben.Francis-dev exists ...found
Checking if security group Ben.Francis-dev exists ...found
Retrieving ID for security group Ben.Francis-dev ...done
Checking if 173.93.203.43 is authorized in security group ...found
Using AMI image id **ami-0d700129195b41067**
Creating device_mappings.json ...
Creating spot_options.json ...
Running spot instance ...

ami-0d700129195b41067 is the latest image from June 1, 2023.

Closes #1535

Edited by Ryan Garcia

Merge request reports