aws-config

Resolves AWS credentials and shared configuration for every AWS SDK for Rust client.

SDK
Cargo
v1.12.0
663stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
92/100Excellent
Development Activity96
Maintenance100
Community84
Maturity60
Momentum28

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
77/100Good
Architecture84
Code Quality86
Innovation74
Learning Curve65

aws-config is the credential and configuration resolution crate underlying the AWS SDK for Rust. It implements the AWS shared config/credentials file format, environment-variable overrides, IMDS (EC2 instance metadata) and ECS container credential providers, SSO and web-identity-token (IRSA/OIDC) authentication, and the AWS STS AssumeRole flow, exposing them all behind a single aws_config::load_from_env()/defaults() entry point that every generated AWS service client (S3, DynamoDB, Lambda, etc.) consumes to construct its SdkConfig.

The crate lives inside the smithy-lang/smithy-rs monorepo, which houses the Smithy code generators that produce the entire AWS SDK for Rust as well as its hand-written runtime crates (aws-config, aws-credential-types, aws-types, and others). Because virtually every Rust application calling AWS APIs depends on aws-config transitively to establish credentials and region/endpoint configuration, it is one of the most widely used crates in the Rust AWS ecosystem despite being maintained as part of the SDK’s code-generation tooling rather than a standalone client library.

What You Get

  • A default credential provider chain implementing AWS’s standard resolution order (env vars, profile, IMDS, ECS, SSO, web identity)
  • Shared config/credentials file parsing (~/.aws/config, ~/.aws/credentials) with profile support
  • SSO (AWS IAM Identity Center) login-based credential resolution
  • Web identity token (IRSA/OIDC, e.g. EKS service accounts) and STS AssumeRole support
  • IMDS (EC2 instance metadata) and ECS container credential providers
  • Behavior-version and retry/timeout configuration shared across all generated AWS service clients

Common Use Cases

  • Bootstrapping any AWS SDK for Rust service client (S3, DynamoDB, Lambda, etc.) with resolved credentials and region
  • Running Rust services on EKS that authenticate via IRSA (IAM Roles for Service Accounts) web identity tokens
  • Local development workflows using AWS SSO / IAM Identity Center login instead of static keys
  • Cross-account access via STS AssumeRole from a Rust application or Lambda function
  • Reading standard AWS CLI-style profile configuration from ~/.aws/config in Rust tooling

Under The Hood

Architecture - aws-config lives at aws/rust-runtime/aws-config inside the smithy-lang/smithy-rs monorepo, which also houses the Kotlin/Gradle-based Smithy code generators (codegen-core, codegen-client) that produce the rest of the AWS SDK for Rust. Its src/ is organized around one submodule per credential source — imds/, sso/, sts/, profile/, environment/, login/, default_provider/ — each implementing a provider that can be composed into the overall resolution chain, with provider_config.rs and default_provider.rs orchestrating the standard AWS credential-lookup order across all of them.

Tech Stack - Rust (edition 2021, rust-version 1.94.1 per Cargo.toml), depending on sibling aws-smithy-* runtime crates (aws-smithy-async, aws-smithy-runtime, aws-smithy-runtime-api) plus aws-sdk-sso/aws-sdk-ssooidc for the SSO flow, gated behind Cargo features (rt-tokio, sso, credentials-process, credentials-login) so consumers only compile the auth paths they use. The monorepo build itself uses Gradle (JDK 17) to drive the Smithy code generators, separate from the plain cargo build of the runtime crates.

Code Quality - The crate ships test-data/ and integration-tests/ directories (explicitly excluded from the published crate via Cargo.toml’s exclude), and the broader smithy-rs repo runs cargoCheck/cargoTest/cargoClippy through Gradle tasks as part of CI. Maintained directly by the ‘AWS Rust SDK Team’ (per Cargo.toml authors), with the monorepo showing very active, consistent commit activity per its GitHub health metrics.

API Design - The primary entry point is a single async call — aws_config::load_defaults(BehaviorVersion::latest()).await — that returns an SdkConfig consumed by every generated service client’s Client::new(&config) constructor, hiding the credential-chain complexity behind one function while still allowing fine-grained overrides (explicit profile name, custom credential provider, explicit region) for advanced cases. This ‘one function, sensible defaults, escape hatches available’ pattern is consistent across the whole AWS SDK for Rust, since every service crate expects the same SdkConfig shape from aws-config.

Used by 20 apps in this directory

TypeScript
53%
MIT

Anarlog

Note Taking · AI Assistants · Productivity

9,252

Anarlog is an open-source, local-first AI meeting notetaker that records, transcribes, and summarizes meetings entirely on your device — no cloud lock-in, no mandatory account, and every note saved as a plain markdown file you own forever.

View details
86
Repo Health
77
Technical
68
Dependency
Built with
TypeScript53%
Rust35%
Updated today
TypeScript
53%
MIT

Anarlog

Note Taking · AI Assistants · Productivity

9,252

Anarlog is an open-source, local-first AI meeting notetaker that records, transcribes, and summarizes meetings entirely on your device — no cloud lock-in, no mandatory account, and every note saved as a plain markdown file you own forever.

View details
86
Repo Health
77
Technical
68
Dependency
Built with
TypeScript53%
Rust35%
Updated today
Rust
86%
Other

Arroyo

Data Engineering · Analytics

5,029

A distributed stream processing engine written in Rust that lets you write SQL to run stateful, real-time computations over data streams with subsecond results.

View details
86
Repo Health
74
Technical
62
Dependency
Built with
Rust86%
Updated 3 days ago
Rust
52%
Apache 2.0

cocoindex

Data Engineering · AI Development

11,496

An incremental data indexing engine that keeps AI agent context perpetually fresh by reprocessing only what changed.

View details
86
Repo Health
85
Technical
64
Dependency
Built with
Rust52%
Python48%
Updated 2 days ago
TypeScript
61%
EPL-2.0

Huly Platform

Project Management · Team Chat · Collaboration

27,586

Open-source all-in-one workspace that replaces Linear, Jira, Slack, and Notion for product and engineering teams.

View details
89
Repo Health
86
Technical
62
Dependency
Built with
TypeScript61%
Svelte34%
Updated 1 weeks ago
TypeScript
65%
Apache 2.0

Laminar

AI Development · Monitoring

3,230

Open-source observability platform purpose-built for AI agents — trace, evaluate, debug, and monitor at scale with SQL access and real-time replay.

View details
85
Repo Health
76
Technical
69
Dependency
Built with
TypeScript65%
Rust33%
Updated yesterday
Rust
40%
Apache 2.0

LanceDB

Databases · AI Development

11,366

Open-source, embedded vector database built on the Lance columnar format for fast multimodal search across billions of vectors, backed by Y Combinator (W23).

View details
90
Repo Health
86
Technical
72
Dependency
Built with
Rust40%
HTML26%
Python26%
Updated yesterday
Rust
84%
Apache 2.0

OpenShell

AI Agents · Developer Tools

8,523

The safe, private runtime that lets autonomous AI agents operate in sandboxed environments governed by declarative YAML policies — blocking data exfiltration, credential leaks, and unauthorized network activity before they happen.

View details
85
Repo Health
81
Technical
68
Dependency
Built with
Rust84%
Updated yesterday
Rust
84%
Apache 2.0

OpenShell

AI Agents · Developer Tools

8,523

The safe, private runtime that lets autonomous AI agents operate in sandboxed environments governed by declarative YAML policies — blocking data exfiltration, credential leaks, and unauthorized network activity before they happen.

View details
85
Repo Health
81
Technical
68
Dependency
Built with
Rust84%
Updated yesterday

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search