Crate ubuntu_ami

Crate ubuntu_ami 

Source
Expand description

Get your fresh, farm-to-table, single-origin ec2 Ubuntu AMIs.

§Example

use ubuntu_ami::*;

#[tokio::main]
async fn main() -> Result<(), StdError> {
    let res = get_latest(
        "us-east-1",
        Some("bionic"),
        None,
        Some("hvm:ebs-ssd"),
        Some("amd64"),
    )
    .await?;
    println!("us-east-1 ubuntu:bionic: {}", res);
    Ok(())
}

Functions§

get_latest
Get the most recent Ubuntu AMI that matches the given criteria.

Type Aliases§

StdError