Soenneker.Aws.BasicCredentials
11.0.380
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Aws.BasicCredentials --version 11.0.380
NuGet\Install-Package Soenneker.Aws.BasicCredentials -Version 11.0.380
<PackageReference Include="Soenneker.Aws.BasicCredentials" Version="11.0.380" />
<PackageVersion Include="Soenneker.Aws.BasicCredentials" Version="11.0.380" />
<PackageReference Include="Soenneker.Aws.BasicCredentials" />
paket add Soenneker.Aws.BasicCredentials --version 11.0.380
#r "nuget: Soenneker.Aws.BasicCredentials, 11.0.380"
#:package Soenneker.Aws.BasicCredentials@11.0.380
#addin nuget:?package=Soenneker.Aws.BasicCredentials&version=11.0.380
#tool nuget:?package=Soenneker.Aws.BasicCredentials&version=11.0.380
Soenneker.Aws.BasicCredentials
Creates and caches the AWS SDK's BasicAWSCredentials from application configuration.
Installation
dotnet add package Soenneker.Aws.BasicCredentials
Configuration
The utility requires these keys:
{
"Aws": {
"AccessKey": "access-key-id",
"SecretKey": "secret-access-key"
}
}
Use a secret provider or environment variables (Aws__AccessKey and Aws__SecretKey) in deployed applications. Do not commit credentials to configuration files.
Registration and use
using Amazon.Runtime;
using Soenneker.Aws.BasicCredentials.Abstract;
using Soenneker.Aws.BasicCredentials.Registrars;
builder.Services.AddBasicAwsCredentialsUtilAsSingleton();
public sealed class AwsClientFactory(IBasicAwsCredentialsUtil credentialsUtil)
{
public async ValueTask<BasicAWSCredentials> GetCredentials(
CancellationToken cancellationToken) =>
await credentialsUtil.Get(cancellationToken);
}
GetSync() is available for callers that cannot use the asynchronous API.
Lifecycle and security
- Credentials are created on first access and reused for the utility's lifetime.
- Configuration changes and rotated keys are not picked up after initialization; replace or dispose the utility to create a new credential object.
- Missing configuration fails credential creation rather than returning blank credentials.
BasicAWSCredentialsrepresents long-lived access keys. Prefer an AWS role or temporary credential provider when the hosting environment supports one.- Let the DI container dispose registered instances. Do not log the credential object or its secret values.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- AWSSDK.Core (>= 4.0.103)
- Soenneker.Extensions.Configuration (>= 11.0.916)
- Soenneker.Utils.AsyncSingleton (>= 11.0.889)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Aws.BasicCredentials:
| Package | Downloads |
|---|---|
|
Soenneker.Aws.Route53.DomainsClientUtil
A .NET thread-safe singleton For AWS's Route53 domain client, AmazonRoute53DomainsClient |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.394 | 0 | 11/20/2026 |
| 11.0.392 | 94 | 11/18/2026 |
| 11.0.391 | 78 | 11/18/2026 |
| 11.0.390 | 79 | 11/18/2026 |
| 11.0.388 | 128 | 11/18/2026 |
| 11.0.387 | 122 | 11/17/2026 |
| 11.0.386 | 214 | 11/14/2026 |
| 11.0.385 | 531 | 11/12/2026 |
| 11.0.384 | 121 | 11/11/2026 |
| 11.0.383 | 165 | 11/11/2026 |
| 11.0.382 | 97 | 11/11/2026 |
| 11.0.381 | 96 | 11/11/2026 |
| 11.0.380 | 150 | 11/10/2026 |
| 11.0.379 | 3,187 | 11/10/2026 |
| 11.0.378 | 6,093 | 11/7/2026 |
| 11.0.377 | 637 | 11/6/2026 |
| 11.0.376 | 621 | 11/5/2026 |
| 11.0.375 | 6,084 | 11/3/2026 |
| 11.0.374 | 6,654 | 10/30/2026 |
| 11.0.373 | 151 | 10/29/2026 |
Updated NuGet packages