Skip to content

Instantly share code, notes, and snippets.

View codyshepherd's full-sized avatar
Typing...

Cody Shepherd codyshepherd

Typing...
View GitHub Profile
@codyshepherd
codyshepherd / query-images.sh
Last active September 19, 2022 22:27
Query Ubuntu cloud image serials by platform, date, release, and type
#!/bin/bash
# Get serials for Ubuntu images in public cloud platforms
#
# Some assumptions are made here about image particulars, e.g. region,
# root storage type, and virtualization type (the latter two are only
# applicable for AWS).
#
# This script uses the sstream-query-cpc snap developed and maintained by the
# Ubuntu CPC Team:
# - https://snapcraft.io/sstream-query-cpc
@codyshepherd
codyshepherd / latest-images.sh
Last active September 11, 2019 21:52
Find the latest Ubuntu image serials for AWS, GCP, and Azure
#!/bin/bash
# Find the latest Ubuntu image serial for any/all of AWS EC2, GCE, or Azure
# clouds.
#
# Some assumptions are made here about image particulars, e.g. region,
# root storage type, and virtualization type (the latter two are only
# applicable for AWS).
#
# This script uses the image-status snap developed and maintained by the
# Ubuntu CPC Team: