aws-config
AWS SDK config and credential provider implementations.
The implementations can be used either via the default chain implementation from_env
/ConfigLoader
or ad-hoc individual credential and region providers.
A ConfigLoader
can combine different configuration sources into an AWS shared-config Config
. The Config
can then be used to configure one or more AWS service clients.
Examples
Load default SDK configuration:
async
Load SDK configuration with a region override:
use RegionProviderChain;
async
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-config to your project, add the following to your Cargo.toml file where VERSION is the version of the SDK you want to use:
[]
= "VERSION"
= "VERSION"
= { = "1", = ["full"] }
Using the SDK
Detailed usage instructions are available in the Developer Guide. Suggestions for additional sections or improvements for the guide are welcome. Please open an issue describing what you are trying to do.
Getting Help
- GitHub discussions - For ideas, RFCs & general questions
- GitHub issues – For bug reports & feature requests
- Generated Docs (latest version)
- Usage examples
License
This project is licensed under the Apache-2.0 License.
This crate is part of the AWS SDK for Rust and the smithy-rs code generator.