48 releases (4 stable)

new 1.4.0 Dec 5, 2023
1.3.0 Nov 27, 2023
0.39.0 Nov 20, 2023
0.28.0 May 24, 2023
0.0.0 May 7, 2021

#1949 in Network programming

Download history 1949/week @ 2023-08-17 2370/week @ 2023-08-24 1568/week @ 2023-08-31 2243/week @ 2023-09-07 2110/week @ 2023-09-14 2779/week @ 2023-09-21 2076/week @ 2023-09-28 2079/week @ 2023-10-05 2330/week @ 2023-10-12 2691/week @ 2023-10-19 3090/week @ 2023-10-26 2975/week @ 2023-11-02 2798/week @ 2023-11-09 3373/week @ 2023-11-16 2001/week @ 2023-11-23 2483/week @ 2023-11-30

11,170 downloads per month
Used in 2 crates


81K SLoC


Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service. It makes it easy to run, stop, and manage Docker containers. You can host your cluster on a serverless infrastructure that's managed by Amazon ECS by launching your services or tasks on Fargate. For more control, you can host your tasks on a cluster of Amazon Elastic Compute Cloud (Amazon EC2) or External (on-premises) instances that you manage.

Amazon ECS makes it easy to launch and stop container-based applications with simple API calls. This makes it easy to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features.

You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs, isolation policies, and availability requirements. With Amazon ECS, you don't need to operate your own cluster management and configuration management systems. You also don't need to worry about scaling your management infrastructure.

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-ecs to your project, add the following to your Cargo.toml file:

aws-config = { version = "1.0.3", features = ["behavior-version-latest"] }
aws-sdk-ecs = "1.4.0"
tokio = { version = "1", features = ["full"] }

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

use aws_sdk_ecs as ecs;

async fn main() -> Result<(), ecs::Error> {
    let config = aws_config::load_from_env().await;
    let client = aws_sdk_ecs::Client::new(&config);

    // ... make some calls with the client


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


This project is licensed under the Apache-2.0 License.


~300K SLoC