List and find the latest Ubuntu AMIs from cloud-images.ubuntu.com.
Project description
ubami
A module and CLI for listing and filtering the latest Ubuntu AMIs from cloud-images.ubuntu.com.
For when you'd rather not hard-code an Ubuntu AMI ID.
Installation
pip install ubami
Usage
# find the latest Jammy Jellyfish AMI for amd64+hvm:ebs-ssd in London
ami_id = ubami.find(region='eu-west-2',
version='22.04 LTS',
arch='amd64',
instance_type='hvm:ebs-ssd')[0]['ami_id']
# fetch a list of all the latest official Ubuntu AMIs
ami_list = ubami.list()
ubami --region=eu-west-2 --version='22.04 LTS' --arch=amd64 --instance-type=hvm:ebs-ssd | jq -r '.[0].ami_id'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ubami-0.1.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for ubami-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b56e05b510e3ff52568f751714758beed2c3518acc18c4323a49a4b244386abe |
|
MD5 | cc6b533419d7deb47d5b9ded36a17cd1 |
|
BLAKE2b-256 | eb65d3ebc2752d989e20b77e2c48fc1d7c7a862c9a25137a35840f16351eaba3 |