DotNetAwsEnv 1.1.1
dotnet add package DotNetAwsEnv --version 1.1.1
NuGet\Install-Package DotNetAwsEnv -Version 1.1.1
<PackageReference Include="DotNetAwsEnv" Version="1.1.1" />
paket add DotNetAwsEnv --version 1.1.1
#r "nuget: DotNetAwsEnv, 1.1.1"
// Install DotNetAwsEnv as a Cake Addin #addin nuget:?package=DotNetAwsEnv&version=1.1.1 // Install DotNetAwsEnv as a Cake Tool #tool nuget:?package=DotNetAwsEnv&version=1.1.1
DotNetAwsEnv
A .NET library to load AWS parameter store variables into the environment. This is based on the aws-env project for loading data into the environment.
Installation
Available on NuGet
Visual Studio:
PM> Install-Package DotNetAwsEnv
.NET CLI:
dotnet add package DotNetAwsEnv
Usage
Load parameters file
Load()
or LoadAsync()
will automatically search for variables in parameter store and inject them into the environment.
DotNetAwsEnv.AwsEnv.Load("ssm/path/prefix");
await DotNetAwsEnv.AwsEnv.LoadAsync("ssm/path/prefix", cancellationToken);
Using .NET Configuration provider
Integrating with the usual ConfigurationBuilder can be used as well:
var configuration = new ConfigurationBuilder()
.AddDotNetAwsEnv("ssm/path/prefix")
.Build();
This will inject these variables into the Configuration Provider and can be used across the application with IConfiguration
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- AWSSDK.SimpleSystemsManagement (>= 3.7.104.19)
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.