103 releases (55 stable)

new 1.53.0 Jun 20, 2024
1.46.0 May 30, 2024
1.30.0 Mar 28, 2024
1.12.0 Dec 21, 2023
0.0.0 May 8, 2021

#508 in Network programming

Download history 19921/week @ 2024-03-02 20177/week @ 2024-03-09 22639/week @ 2024-03-16 19995/week @ 2024-03-23 20295/week @ 2024-03-30 16320/week @ 2024-04-06 19289/week @ 2024-04-13 22071/week @ 2024-04-20 19014/week @ 2024-04-27 19880/week @ 2024-05-04 22182/week @ 2024-05-11 21717/week @ 2024-05-18 16453/week @ 2024-05-25 20551/week @ 2024-06-01 21597/week @ 2024-06-08 16158/week @ 2024-06-15

78,720 downloads per month
Used in 31 crates (20 directly)

Apache-2.0

48MB
689K SLoC

aws-sdk-ec2

You can access the features of Amazon Elastic Compute Cloud (Amazon EC2) programmatically. For more information, see the Amazon EC2 Developer Guide.

Getting Started

Examples are available for many services and operations, check out the examples folder in GitHub.

The SDK provides one crate per AWS service. You must add Tokio as a dependency within your Rust project to execute asynchronous code. To add aws-sdk-ec2 to your project, add the following to your Cargo.toml file:

[dependencies]
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
aws-sdk-ec2 = "1.53.0"
tokio = { version = "1", features = ["full"] }

Then in code, a client can be created with the following:

use aws_sdk_ec2 as ec2;

#[::tokio::main]
async fn main() -> Result<(), ec2::Error> {
    let config = aws_config::load_from_env().await;
    let client = aws_sdk_ec2::Client::new(&config);

    // ... make some calls with the client

    Ok(())
}

See the client documentation for information on what calls can be made, and the inputs and outputs for each of those calls.

Using the SDK

Until the SDK is released, we will be adding information about using the SDK to the Developer Guide. Feel free to suggest additional sections for the guide by opening an issue and describing what you are trying to do.

Getting Help

License

This project is licensed under the Apache-2.0 License.

Dependencies

~8–20MB
~277K SLoC