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()
# first example as a shell command
ubami --region=eu-west-2 --version='22.04 LTS' --arch=amd64 --instance-type=hvm:ebs-ssd | jq -r '.[0].ami_id'
# second example as a shell command
ubami
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.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for ubami-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4803dac4754a4f74f8165ee1ed729a64e690bafc0bc76ef5822944058a148b1f |
|
MD5 | 656d123e7047f209fbaffff0f0974f79 |
|
BLAKE2b-256 | 1db60474b9a487e11ddf17b91662b1ad87e416ee3d72c3bbc574df301c2964ff |