Skip to content

Commit

Permalink
#1978 Add Secrets Manager Client (#2003)
Browse files Browse the repository at this point in the history
  • Loading branch information
delager authored and kbeaugrand committed Jun 23, 2023
1 parent 78513b3 commit 673472f
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.9.2" />
<PackageReference Include="Azure.Messaging.EventHubs.Processor" Version="5.9.2" />
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 673472f

Please sign in to comment.