From 5f6cbaeefa93cf21d0265919b6fdc7936576894d Mon Sep 17 00:00:00 2001 From: ssgueye2 <127868584+ssgueye2@users.noreply.github.com> Date: Thu, 11 May 2023 18:42:42 +0200 Subject: [PATCH] add AWS Greegrass infrastructure (#2061) --- .../AzureIoTHub.Portal.Infrastructure.csproj | 1 + .../Startup/AWSServiceCollectionExtension.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/AzureIoTHub.Portal.Infrastructure/AzureIoTHub.Portal.Infrastructure.csproj b/src/AzureIoTHub.Portal.Infrastructure/AzureIoTHub.Portal.Infrastructure.csproj index aee729489..d73ae7985 100644 --- a/src/AzureIoTHub.Portal.Infrastructure/AzureIoTHub.Portal.Infrastructure.csproj +++ b/src/AzureIoTHub.Portal.Infrastructure/AzureIoTHub.Portal.Infrastructure.csproj @@ -106,6 +106,7 @@ + diff --git a/src/AzureIoTHub.Portal.Infrastructure/Startup/AWSServiceCollectionExtension.cs b/src/AzureIoTHub.Portal.Infrastructure/Startup/AWSServiceCollectionExtension.cs index ac78f236e..616b877ac 100644 --- a/src/AzureIoTHub.Portal.Infrastructure/Startup/AWSServiceCollectionExtension.cs +++ b/src/AzureIoTHub.Portal.Infrastructure/Startup/AWSServiceCollectionExtension.cs @@ -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; @@ -48,6 +49,7 @@ private static IServiceCollection ConfigureAWSClient(this IServiceCollection ser _ = services.AddSingleton(new AmazonS3Client(configuration.AWSAccess, configuration.AWSAccessSecret, RegionEndpoint.GetBySystemName(configuration.AWSRegion))); + _ = services.AddSingleton(new AmazonGreengrassV2Client(configuration.AWSAccess, configuration.AWSAccessSecret, RegionEndpoint.GetBySystemName(configuration.AWSRegion))); return services; }