Skip to content

Commit

Permalink
add AWS Greegrass infrastructure (#2061)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssgueye2 authored and kbeaugrand committed Jun 16, 2023
1 parent 7e40434 commit 8d26092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.GreengrassV2" Version="3.7.103.20" />
<PackageReference Include="AWSSDK.IoT" Version="3.7.107.5" />
<PackageReference Include="AWSSDK.IotData" Version="3.7.102.5" />
<PackageReference Include="AWSSDK.S3" Version="3.7.104.6" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace AzureIoTHub.Portal.Infrastructure.Startup
using AzureIoTHub.Portal.Application.Managers;
using AzureIoTHub.Portal.Infrastructure.Managers;
using Microsoft.Extensions.DependencyInjection;
using Amazon.GreengrassV2;
using AzureIoTHub.Portal.Domain.Repositories.AWS;
using AzureIoTHub.Portal.Infrastructure.Repositories.AWS;

Expand Down Expand Up @@ -48,6 +49,7 @@ private static IServiceCollection ConfigureAWSClient(this IServiceCollection ser

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

_ = services.AddSingleton(new AmazonGreengrassV2Client(configuration.AWSAccess, configuration.AWSAccessSecret, RegionEndpoint.GetBySystemName(configuration.AWSRegion)));
return services;
}

Expand Down

0 comments on commit 8d26092

Please sign in to comment.