aws-config

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

SDK
Cargo
v1.10.1
656stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
93/100Excellent
Development Activity100
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 10 apps in this directory

TypeScript
51%
MIT

Anarlog

Note Taking · AI Assistants · Productivity

9,087

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
69
Dependency
Built with
TypeScript51%
Rust38%
Updated today
Rust
52%
Apache 2.0

cocoindex

Data Engineering · AI Development

11,350

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

View details
87
Repo Health
85
Technical
64
Dependency
Built with
Rust52%
Python48%
Updated yesterday
TypeScript
61%
EPL-2.0

Huly Platform

Project Management · Team Chat · Collaboration

27,384

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

View details
90
Repo Health
86
Technical
64
Dependency
Built with
TypeScript61%
Svelte34%
Updated 1 weeks ago
TypeScript
69%
Apache 2.0

Laminar

AI Development · Monitoring

3,180

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
70
Dependency
Built with
TypeScript69%
Rust29%
Updated yesterday
Rust
36%
Apache 2.0

LanceDB

Databases · AI Development

11,190

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
Rust36%
HTML30%
Python26%
Updated today
Python
74%
AGPL 3.0

OpenViking

Databases · AI Development

29,711

An open-source context database that gives AI agents a unified filesystem for memory, resources, and skills with hierarchical tiered retrieval.

View details
84
Repo Health
75
Technical
65
Dependency
Built with
Python74%
Rust14%
Updated today
Go
80%
AGPL 3.0

PeerDB

Data Engineering · Databases

3,241

Postgres-native ETL that streams change data capture in real time to Snowflake, BigQuery, ClickHouse, S3, and Kafka — up to 10x faster than general-purpose pipelines, managed through a familiar Postgres SQL interface.

View details
88
Repo Health
76
Technical
68
Dependency
Built with
Go80%
TypeScript13%
Updated today
Rust
49%
MIT

Svix

Developer Tools · Automation

3,359

Open source, self-hostable webhook infrastructure that handles delivery, retries, HMAC signing, and multi-tenant event management so you never have to build a webhooks system from scratch.

View details
91
Repo Health
77
Technical
70
Dependency
Built with
Rust49%
C#15%
Updated today
Rust
83%
AGPL 3.0

Vaultwarden

Password Manager · Security

65,652

Unofficial Bitwarden-compatible server in Rust — run the full Bitwarden ecosystem on a Raspberry Pi using every official client you already have, without the multi-container overhead.

View details
83
Repo Health
69
Technical
80
Dependency
Built with
Rust83%
Updated 6 days ago

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