Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project>
<PropertyGroup>
<!-- APPLICATION DEPENDENCIES -->
<!-- AWSSDK.Core -->
<AWSSDK-Core>3.7.500.8</AWSSDK-Core>
<!-- AWSSDK.SimpleSystemsManagement -->
<AWSSDK-SimpleSystemsManagement>3.7.500.8</AWSSDK-SimpleSystemsManagement>
<!-- Microsoft.Extensions.Configuration -->
<Microsoft-Extensions-Configuration>8.0.0</Microsoft-Extensions-Configuration>
<!-- Microsoft.AspNetCore.TestHost -->
<Microsoft-AspNetCore-TestHost>8.0.19</Microsoft-AspNetCore-TestHost>
<!-- Microsoft.NET.Test.Sdk -->
<Microsoft-NET-Test-Sdk>17.11.1</Microsoft-NET-Test-Sdk>
<!-- xunit -->
<xunit>2.9.3</xunit>
<!-- xunit.runner.visualstudio -->
<xunit-runner-visualstudio>2.8.2</xunit-runner-visualstudio>
</PropertyGroup>
</Project>
9 changes: 7 additions & 2 deletions parameterstore-configuration-provider.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.16
# Visual Studio Version 17
VisualStudioVersion = 17.14.36310.24 d17.14
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{6E4B3BAB-D0C7-454B-B816-C8C8A5F1E052}"
EndProject
Expand All @@ -12,6 +12,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "example-api-test", "test\ex
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParameterStoreConfigurationProvider", "src\ParameterStoreConfigurationProvider\ParameterStoreConfigurationProvider.csproj", "{054E604B-5DD1-48B1-89A5-3C56A340C7E5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>Use AWS ParameterStore to configure your .net core project</Description>
<Description>Use AWS ParameterStore to configure your .net project</Description>
<PackageProjectUrl>https://github.com/schwamster/ParameterStoreConfigurationProvider</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/schwamster/ParameterStoreConfigurationProvider/blob/master/LICENSE</PackageLicenseUrl>
<Copyright>Bastian Töpfer</Copyright>
<PackageTags>AWS ParameterStore Configuration</PackageTags>
<Version>1.1.0</Version>
<!-- First Part: {MajorVersion}.{MinorNoneBreakingVersion} -->
<!-- Second Part: Matching the underlying AWSSDK version -->
<Version>2.0.3.7</Version>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.Core" Version="3.3.19" />
<PackageReference Include="AWSSDK.SimpleSystemsManagement" Version="3.3.14" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.0.0" />
<PackageReference Include="AWSSDK.Core" Version="$(AWSSDK-Core)" />
<PackageReference Include="AWSSDK.SimpleSystemsManagement" Version="$(AWSSDK-SimpleSystemsManagement)" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="$(Microsoft-Extensions-Configuration)" />
</ItemGroup>

</Project>
7 changes: 2 additions & 5 deletions src/example-api/Controllers/ValuesController.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using System;

namespace example_api.Controllers
{
Expand Down
18 changes: 7 additions & 11 deletions src/example-api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using ParameterStoreConfigurationProvider;
using System.Collections.Generic;
using System.IO;

namespace example_api
{
Expand All @@ -20,9 +16,9 @@ public static void Main(string[] args)

public static IWebHost BuildWebHost(string[] args)
{

return WebHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((hostContext, config)=>
.ConfigureAppConfiguration((hostContext, config) =>
{
config.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
Expand All @@ -36,7 +32,7 @@ public static IWebHost BuildWebHost(string[] args)
};
parameterStoreConfig.Region = "eu-west-1";
parameterStoreConfig.UseDefaultCredentials = true;
// parameterStoreConfig.AwsCredential = new Amazon.Runtime.StoredProfileAWSCredentials();
// parameterStoreConfig.AwsCredential = new Amazon.Runtime.StoredProfileAWSCredentials();
})
.AddParameterStoreConfig(parameterStoreConfig =>
{
Expand All @@ -47,7 +43,7 @@ public static IWebHost BuildWebHost(string[] args)
parameterStoreConfig.WithDecryption = true;
parameterStoreConfig.Region = "eu-west-1";
parameterStoreConfig.UseDefaultCredentials = true;
// parameterStoreConfig.AwsCredential = new Amazon.Runtime.StoredProfileAWSCredentials();
// parameterStoreConfig.AwsCredential = new Amazon.Runtime.StoredProfileAWSCredentials();
});
})
.UseStartup<Startup>()
Expand Down
10 changes: 2 additions & 8 deletions src/example-api/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace example_api
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
Configuration = configuration;
}

public IConfiguration Configuration { get; }
Expand Down
12 changes: 1 addition & 11 deletions src/example-api/example-api.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.Core" Version="3.3.19" />
<PackageReference Include="AWSSDK.SimpleSystemsManagement" Version="3.3.14" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
</ItemGroup>

<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ParameterStoreConfigurationProvider\ParameterStoreConfigurationProvider.csproj" />
</ItemGroup>
Expand Down
17 changes: 10 additions & 7 deletions test/example-api-test/example-api-test.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>

<TargetFramework>net8.0</TargetFramework>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand All @@ -14,10 +14,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0-preview-20170628-02" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="$(Microsoft-AspNetCore-TestHost)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(Microsoft-NET-Test-Sdk)" />
<PackageReference Include="xunit" Version="$(xunit)" />
<PackageReference Include="xunit.runner.visualstudio" Version="$(xunit-runner-visualstudio)">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down