Skip to content

Commit c172037

Browse files
committed
Upgrade deprecated Lambda runtimes in examples
- aspnet-mvc-zip: dotnet6 -> dotnet8 (runtime, csproj, README) - aspnet-webapi-zip: dotnet6 -> dotnet8 (runtime, csproj, README) - expressjs-zip: nodejs18.x -> nodejs22.x
1 parent 1e734ce commit c172037

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

examples/aspnet-mvc-zip/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This example shows how to deploy an ASP.NET application using the Lambda Web Adapter packaged as a ZIP file.
44

5-
The `dotnet6` runtime is used.
5+
The `dotnet8` runtime is used.
66

77
```yaml
88
Resources:
@@ -28,7 +28,7 @@ Resources:
2828
2929
## Build & Deploy
3030
31-
Make sure .NET 6 is already installed. Run the following commands on a x86_64 machine.
31+
Make sure .NET 8 is already installed. Run the following commands on a x86_64 machine.
3232
3333
```shell
3434
sam build --use-container

examples/aspnet-mvc-zip/src/AspNetLambdaZipWebAdapter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

examples/aspnet-mvc-zip/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Transform: AWS::Serverless-2016-10-31
44
Globals:
55
Function:
66
MemorySize: 1024
7-
Runtime: dotnet6
7+
Runtime: dotnet8
88
Architectures:
99
- x86_64
1010
Timeout: 29

examples/aspnet-webapi-zip/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This example shows how to deploy an ASP.NET application using the Lambda Web Adapter packaged as a ZIP file.
44

5-
The `dotnet6` runtime is used.
5+
The `dotnet8` runtime is used.
66

77
```yaml
88
Resources:
@@ -36,7 +36,7 @@ A shell script is used as the handler to startup the ASP.NET web application.
3636

3737
## Build & Deploy
3838

39-
Make sure .NET 6 is already installed. Run the following commands on a x86_64 machine.
39+
Make sure .NET 8 is already installed. Run the following commands on a x86_64 machine.
4040

4141
```shell
4242
sam build --use-container

examples/aspnet-webapi-zip/src/AspNetWebApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<InvariantGlobalization>true</InvariantGlobalization>

examples/aspnet-webapi-zip/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Transform: AWS::Serverless-2016-10-31
44
Globals:
55
Function:
66
MemorySize: 1024
7-
Runtime: dotnet6
7+
Runtime: dotnet8
88
Architectures:
99
- x86_64
1010
Timeout: 29

examples/expressjs-zip/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Resources:
1616
Properties:
1717
CodeUri: hello-world/
1818
Handler: run.sh
19-
Runtime: nodejs18.x
19+
Runtime: nodejs22.x
2020
MemorySize: 1024
2121
Architectures:
2222
- x86_64

0 commit comments

Comments
 (0)