diff --git a/csharp/application-load-balancer/src/ApplicationLoadBalancer/ApplicationLoadBalancer.csproj b/csharp/application-load-balancer/src/ApplicationLoadBalancer/ApplicationLoadBalancer.csproj
index 662d3fb87f..79bb8f20a2 100644
--- a/csharp/application-load-balancer/src/ApplicationLoadBalancer/ApplicationLoadBalancer.csproj
+++ b/csharp/application-load-balancer/src/ApplicationLoadBalancer/ApplicationLoadBalancer.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.0
+ netcoreapp3.1
diff --git a/csharp/appsync-graphql-dynamodb/src/AppsyncGraphqlDynamodb/AppsyncGraphqlDynamodb.csproj b/csharp/appsync-graphql-dynamodb/src/AppsyncGraphqlDynamodb/AppsyncGraphqlDynamodb.csproj
index 243de1656c..d2accea2e5 100644
--- a/csharp/appsync-graphql-dynamodb/src/AppsyncGraphqlDynamodb/AppsyncGraphqlDynamodb.csproj
+++ b/csharp/appsync-graphql-dynamodb/src/AppsyncGraphqlDynamodb/AppsyncGraphqlDynamodb.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.0
+ netcoreapp3.1
diff --git a/csharp/my-widget-service/cdk.json b/csharp/my-widget-service/cdk.json
index 2a2e3f5c0e..aff6df3e02 100644
--- a/csharp/my-widget-service/cdk.json
+++ b/csharp/my-widget-service/cdk.json
@@ -1,3 +1,3 @@
{
- "app": "dotnet src/MyWidgetService/bin/Debug/netcoreapp3.0/MyWidgetService.dll"
+ "app": "dotnet src/MyWidgetService/bin/Debug/netcoreapp3.1/MyWidgetService.dll"
}
diff --git a/csharp/my-widget-service/src/MyWidgetService/MyWidgetService.csproj b/csharp/my-widget-service/src/MyWidgetService/MyWidgetService.csproj
index 94e2641bbd..2d22907e25 100644
--- a/csharp/my-widget-service/src/MyWidgetService/MyWidgetService.csproj
+++ b/csharp/my-widget-service/src/MyWidgetService/MyWidgetService.csproj
@@ -2,15 +2,15 @@
Exe
- netcoreapp3.0
+ netcoreapp3.1
-
-
-
-
-
+
+
+
+
+
diff --git a/csharp/my-widget-service/src/MyWidgetService/MyWidgetServiceStack.cs b/csharp/my-widget-service/src/MyWidgetService/MyWidgetServiceStack.cs
index 328392c618..b70c4f1ca8 100644
--- a/csharp/my-widget-service/src/MyWidgetService/MyWidgetServiceStack.cs
+++ b/csharp/my-widget-service/src/MyWidgetService/MyWidgetServiceStack.cs
@@ -13,7 +13,7 @@ public MyWidgetServiceStack(Construct parent, string id, IStackProps props) : ba
var bucket = new Bucket(this, "WidgetStore");
var handler = new Function(this, "WidgetHandler", new FunctionProps {
- Runtime = Runtime.NODEJS_10_X,
+ Runtime = Runtime.NODEJS_14_X,
Code = Code.FromAsset("src/MyWidgetService/resources"),
Handler = "widgets.main",
Environment = new Dictionary{
diff --git a/csharp/random-writer/src/RandomWriter/RandomWriterStack.cs b/csharp/random-writer/src/RandomWriter/RandomWriterStack.cs
index 1c9e5cb0da..a16d5ed76f 100644
--- a/csharp/random-writer/src/RandomWriter/RandomWriterStack.cs
+++ b/csharp/random-writer/src/RandomWriter/RandomWriterStack.cs
@@ -39,7 +39,7 @@ public RandomWriter(Construct scope, string id): base(scope, id)
Function = new Function(this, "Lambda", new FunctionProps
{
- Runtime = Runtime.NODEJS_10_X,
+ Runtime = Runtime.NODEJS_14_X,
Handler = "index.handler",
Code = Code.FromAsset("src/RandomWriter/resources"),
Environment = new Dictionary
diff --git a/csharp/static-site/src/StaticSite/StaticSite.csproj b/csharp/static-site/src/StaticSite/StaticSite.csproj
index a8711b444e..140305ecf7 100644
--- a/csharp/static-site/src/StaticSite/StaticSite.csproj
+++ b/csharp/static-site/src/StaticSite/StaticSite.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.0
+ netcoreapp3.1
diff --git a/java/my-widget-service/src/main/java/software/amazon/awscdk/examples/MyWidgetServiceStack.java b/java/my-widget-service/src/main/java/software/amazon/awscdk/examples/MyWidgetServiceStack.java
index c9d06a463f..b56da223d4 100644
--- a/java/my-widget-service/src/main/java/software/amazon/awscdk/examples/MyWidgetServiceStack.java
+++ b/java/my-widget-service/src/main/java/software/amazon/awscdk/examples/MyWidgetServiceStack.java
@@ -49,7 +49,7 @@ public MyWidgetServiceStack(final Construct scope, final String id) {
.code(Code.fromAsset("resources"))
.handler("widgets.main")
.timeout(Duration.seconds(300))
- .runtime(Runtime.NODEJS_10_X)
+ .runtime(Runtime.NODEJS_14_X)
.environment(environmentVariables)
.build();
diff --git a/java/my-widget-service/src/test/resources/software/amazon/awscdk/examples/testMyWidgetServiceExpected.json b/java/my-widget-service/src/test/resources/software/amazon/awscdk/examples/testMyWidgetServiceExpected.json
index 5df7d1331d..d28b9d4db6 100644
--- a/java/my-widget-service/src/test/resources/software/amazon/awscdk/examples/testMyWidgetServiceExpected.json
+++ b/java/my-widget-service/src/test/resources/software/amazon/awscdk/examples/testMyWidgetServiceExpected.json
@@ -743,7 +743,7 @@
"Arn"
]
},
- "Runtime": "nodejs10.x",
+ "Runtime": "nodejs14.x",
"Environment": {
"Variables": {
"BUCKET": {
diff --git a/typescript/api-cors-lambda-crud-dynamodb/index.ts b/typescript/api-cors-lambda-crud-dynamodb/index.ts
index 58e54d5845..36d3038c7e 100644
--- a/typescript/api-cors-lambda-crud-dynamodb/index.ts
+++ b/typescript/api-cors-lambda-crud-dynamodb/index.ts
@@ -23,7 +23,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const getOneLambda = new lambda.Function(this, 'getOneItemFunction', {
code: new lambda.AssetCode('src'),
handler: 'get-one.handler',
- runtime: lambda.Runtime.NODEJS_10_X,
+ runtime: lambda.Runtime.NODEJS_14_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
@@ -33,7 +33,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const getAllLambda = new lambda.Function(this, 'getAllItemsFunction', {
code: new lambda.AssetCode('src'),
handler: 'get-all.handler',
- runtime: lambda.Runtime.NODEJS_10_X,
+ runtime: lambda.Runtime.NODEJS_14_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
@@ -43,7 +43,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const createOne = new lambda.Function(this, 'createItemFunction', {
code: new lambda.AssetCode('src'),
handler: 'create.handler',
- runtime: lambda.Runtime.NODEJS_10_X,
+ runtime: lambda.Runtime.NODEJS_14_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
@@ -53,7 +53,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const updateOne = new lambda.Function(this, 'updateItemFunction', {
code: new lambda.AssetCode('src'),
handler: 'update-one.handler',
- runtime: lambda.Runtime.NODEJS_10_X,
+ runtime: lambda.Runtime.NODEJS_14_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
@@ -63,7 +63,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const deleteOne = new lambda.Function(this, 'deleteItemFunction', {
code: new lambda.AssetCode('src'),
handler: 'delete-one.handler',
- runtime: lambda.Runtime.NODEJS_10_X,
+ runtime: lambda.Runtime.NODEJS_14_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
diff --git a/typescript/appsync-graphql-eventbridge/index.ts b/typescript/appsync-graphql-eventbridge/index.ts
index f350516dd8..7cf3b4b44f 100644
--- a/typescript/appsync-graphql-eventbridge/index.ts
+++ b/typescript/appsync-graphql-eventbridge/index.ts
@@ -124,7 +124,7 @@ export class AppSyncCdkStack extends cdk.Stack {
"exports.handler = (event, context) => { console.log(event); context.succeed(event); }"
),
handler: "index.handler",
- runtime: lambda.Runtime.NODEJS_10_X
+ runtime: lambda.Runtime.NODEJS_14_X
});
const rule = new Rule(this, "AppSyncEventBridgeRle", {
diff --git a/typescript/cognito-api-lambda/index.ts b/typescript/cognito-api-lambda/index.ts
index 414c20bacf..b188f99f7c 100644
--- a/typescript/cognito-api-lambda/index.ts
+++ b/typescript/cognito-api-lambda/index.ts
@@ -11,7 +11,7 @@ export class CognitoProtectedApi extends Stack {
const helloWorldFunction = new Function(this, 'helloWorldFunction', {
code: new AssetCode('src'),
handler: 'helloworld.handler',
- runtime: Runtime.NODEJS_12_X
+ runtime: Runtime.NODEJS_14_X
});
// Rest API backed by the helloWorldFunction
diff --git a/typescript/ecs/fargate-service-with-efs/efs-mount-fargate-cr.ts b/typescript/ecs/fargate-service-with-efs/efs-mount-fargate-cr.ts
index 68bd1bf84f..75a5a1d66c 100644
--- a/typescript/ecs/fargate-service-with-efs/efs-mount-fargate-cr.ts
+++ b/typescript/ecs/fargate-service-with-efs/efs-mount-fargate-cr.ts
@@ -28,7 +28,7 @@ export class FargateEfsCustomResource extends cdk.Construct {
code: new lambda.InlineCode(fs.readFileSync('lambda.js', { encoding: 'utf-8' })),
handler: 'index.handler',
timeout: cdk.Duration.seconds(300),
- runtime: lambda.Runtime.NODEJS_12_X,
+ runtime: lambda.Runtime.NODEJS_14_X,
initialPolicy:[
new iam.PolicyStatement({
actions: [ 'ecs:UpdateService', 'ecs:RegisterTaskDefinition', 'ecs:DescribeTaskDefinition', 'iam:PassRole', 'iam:GetRole' ],
diff --git a/typescript/lambda-api-ci/buildspec.yml b/typescript/lambda-api-ci/buildspec.yml
index 3fee1642e4..e67337e2ce 100644
--- a/typescript/lambda-api-ci/buildspec.yml
+++ b/typescript/lambda-api-ci/buildspec.yml
@@ -4,7 +4,7 @@ version: 0.2
phases:
install:
runtime-versions:
- nodejs: 12
+ nodejs: 14
commands:
- npm install
diff --git a/typescript/lambda-api-ci/lib/lambda-api-stack.ts b/typescript/lambda-api-ci/lib/lambda-api-stack.ts
index 8c240090f0..139d55cc5d 100644
--- a/typescript/lambda-api-ci/lib/lambda-api-stack.ts
+++ b/typescript/lambda-api-ci/lib/lambda-api-stack.ts
@@ -34,7 +34,7 @@ export class CDKExampleLambdaApiStack extends Stack {
this.lambdaFunction = new Function(this, props.functionName, {
functionName: props.functionName,
handler: "handler.handler",
- runtime: Runtime.NODEJS_10_X,
+ runtime: Runtime.NODEJS_14_X,
code: new AssetCode(`./src`),
memorySize: 512,
timeout: Duration.seconds(10),
diff --git a/typescript/lambda-manage-s3-event-notification/lib/shared-resources-stack.ts b/typescript/lambda-manage-s3-event-notification/lib/shared-resources-stack.ts
index 80aeecc81e..5158f74f58 100644
--- a/typescript/lambda-manage-s3-event-notification/lib/shared-resources-stack.ts
+++ b/typescript/lambda-manage-s3-event-notification/lib/shared-resources-stack.ts
@@ -18,7 +18,7 @@ export class SharedStack extends cdk.Stack {
this.bucketName = bucket.bucketName;
const fn = new lambda.Function(this, 'S3EventNotificationsLambda', {
- runtime: lambda.Runtime.NODEJS_12_X,
+ runtime: lambda.Runtime.NODEJS_14_X,
functionName: 'S3EventNotificationsManager',
handler: 'manage-s3-event-notifications.handler',
code: lambda.Code.fromAsset(path.join(__dirname, '../lambda')),
diff --git a/typescript/my-widget-service/widget_service.ts b/typescript/my-widget-service/widget_service.ts
index 64cbbcc539..b0388cb7fa 100644
--- a/typescript/my-widget-service/widget_service.ts
+++ b/typescript/my-widget-service/widget_service.ts
@@ -44,7 +44,7 @@ export class WidgetService extends cdk.Construct {
});
const handler = new lambda.Function(this, "WidgetHandler", {
- runtime: lambda.Runtime.NODEJS_10_X, // So we can use async in widget.js
+ runtime: lambda.Runtime.NODEJS_14_X, // So we can use async in widget.js
code: lambda.AssetCode.asset("resources"),
handler: "widgets.main",
environment: {