Skip to content

Commit

Permalink
#1978 Add Secrets Manager Client
Browse files Browse the repository at this point in the history
  • Loading branch information
delager authored and kbeaugrand committed Apr 11, 2023
1 parent 2455fb3 commit 00bca99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
<ItemGroup>
<PackageReference Include="AWSSDK.IoT" Version="3.7.105.22" />
<PackageReference Include="AWSSDK.IotData" Version="3.7.102.5" />
<PackageReference Include="AWSSDK.SecretsManager" Version="3.7.102.21" />
<PackageReference Include="Azure.Data.Tables" Version="12.8.0" />
<PackageReference Include="Azure.Messaging.EventHubs" Version="5.8.1" />
<PackageReference Include="Azure.Messaging.EventHubs.Processor" Version="5.8.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace AzureIoTHub.Portal.Infrastructure.Startup
using Amazon;
using Amazon.IoT;
using Amazon.IotData;
using Amazon.SecretsManager;
using AzureIoTHub.Portal.Domain;
using Microsoft.Extensions.DependencyInjection;

Expand All @@ -31,6 +32,8 @@ private static IServiceCollection ConfigureAWSClient(this IServiceCollection ser
});
});

_ = services.AddSingleton(() => new AmazonSecretsManagerClient(configuration.AWSAccess, configuration.AWSAccessSecret, RegionEndpoint.GetBySystemName(configuration.AWSRegion)));

return services;
}
}
Expand Down

0 comments on commit 00bca99

Please sign in to comment.