diff --git a/dotnet/integration-tests/aws-sdk/wrapper/main.tf b/dotnet/integration-tests/aws-sdk/wrapper/main.tf index 6421879149..e683c55fef 100644 --- a/dotnet/integration-tests/aws-sdk/wrapper/main.tf +++ b/dotnet/integration-tests/aws-sdk/wrapper/main.tf @@ -2,7 +2,7 @@ resource "aws_lambda_layer_version" "collector_layer" { count = var.enable_collector_layer ? 1 : 0 layer_name = var.collector_layer_name filename = "${path.module}/../../../../collector/build/collector-extension.zip" - compatible_runtimes = ["dotnetcore2.1", "dotnetcore3.1"] + compatible_runtimes = ["dotnet6", "dotnetcore3.1"] license_info = "Apache-2.0" source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension.zip") } diff --git a/dotnet/sample-apps/aws-sdk/deploy/wrapper/main.tf b/dotnet/sample-apps/aws-sdk/deploy/wrapper/main.tf index c8745a0136..d154f09608 100644 --- a/dotnet/sample-apps/aws-sdk/deploy/wrapper/main.tf +++ b/dotnet/sample-apps/aws-sdk/deploy/wrapper/main.tf @@ -5,7 +5,7 @@ module "hello-lambda-function" { architectures = compact([var.architecture]) function_name = var.name handler = "AwsSdkSample::AwsSdkSample.Function::TracingFunctionHandler" - runtime = "dotnetcore3.1" + runtime = "dotnet6" create_package = false local_existing_package = "${path.module}/../../wrapper/SampleApps/build/function.zip" diff --git a/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/AwsSdkSample/AwsSdkSample.csproj b/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/AwsSdkSample/AwsSdkSample.csproj index dc34f39def..6b9704ac45 100644 --- a/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/AwsSdkSample/AwsSdkSample.csproj +++ b/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/AwsSdkSample/AwsSdkSample.csproj @@ -1,6 +1,6 @@ - netcoreapp3.1 + net6.0 true Lambda diff --git a/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/AwsSdkSample/Properties/launchSettings.json b/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/AwsSdkSample/Properties/launchSettings.json index 47f4a06fbe..adec93b9f3 100644 --- a/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/AwsSdkSample/Properties/launchSettings.json +++ b/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/AwsSdkSample/Properties/launchSettings.json @@ -3,8 +3,8 @@ "Mock Lambda Test Tool": { "commandName": "Executable", "commandLineArgs": "--port 5050", - "workingDirectory": ".\\bin\\$(Configuration)\\netcoreapp3.1", - "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-3.1.exe" + "workingDirectory": ".\\bin\\$(Configuration)\\net6.0", + "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-6.0.exe" } } } diff --git a/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/build.sh b/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/build.sh index 307ed70a37..1056d35c3f 100755 --- a/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/build.sh +++ b/dotnet/sample-apps/aws-sdk/wrapper/SampleApps/build.sh @@ -18,7 +18,7 @@ mkdir -p build/dotnet dotnet publish \ --output "./build/dotnet" \ --configuration "Release" \ - --framework "netcoreapp3.1" /p:GenerateRuntimeConfigurationFiles=true \ + --framework "net6.0" /p:GenerateRuntimeConfigurationFiles=true \ --runtime linux-$DOTNET_LINUX_ARCH \ --self-contained false cd build/dotnet