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.