Skip to main content

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


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 details)

Uploaded Source

Built Distribution

ubami-0.1.2-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ubami-0.1.2.tar.gz.

File metadata

  • Download URL: ubami-0.1.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ubami-0.1.2.tar.gz
Algorithm Hash digest
SHA256 83216c2aa505278eebdf12c92bf4ec93fbf6cc4e3e17ef83693f45d5670d6a60
MD5 3b2a9cd239bb8d4fa16d5b4c0c235f7d
BLAKE2b-256 ae49d56932ca6ae5e3063f6052b3a9d2faf5c442cfbd91eb053ae67eff723f54

See more details on using hashes here.

File details

Details for the file ubami-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: ubami-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ubami-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4803dac4754a4f74f8165ee1ed729a64e690bafc0bc76ef5822944058a148b1f
MD5 656d123e7047f209fbaffff0f0974f79
BLAKE2b-256 1db60474b9a487e11ddf17b91662b1ad87e416ee3d72c3bbc574df301c2964ff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page