Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion csharp/my-widget-service/cdk.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"app": "dotnet src/MyWidgetService/bin/Debug/netcoreapp3.0/MyWidgetService.dll"
"app": "dotnet src/MyWidgetService/bin/Debug/netcoreapp3.1/MyWidgetService.dll"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Amazon.CDK" Version="1.14.0-devpreview" />
<PackageReference Include="Amazon.CDK.AWS.ApiGateway" Version="1.14.0-devpreview" />
<PackageReference Include="Amazon.CDK.AWS.Lambda" Version="1.14.0-devpreview" />
<PackageReference Include="Amazon.CDK.AWS.S3" Version="1.14.0-devpreview" />
<PackageReference Include="Amazon.JSII.Analyzers" Version="0.19.0" PrivateAssets="all" />
<PackageReference Include="Amazon.CDK" Version="*" />
<PackageReference Include="Amazon.CDK.AWS.ApiGateway" Version="*" />
<PackageReference Include="Amazon.CDK.AWS.Lambda" Version="*" />
<PackageReference Include="Amazon.CDK.AWS.S3" Version="*" />
<PackageReference Include="Amazon.JSII.Analyzers" Version="*" PrivateAssets="all" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>{
Expand Down
2 changes: 1 addition & 1 deletion csharp/random-writer/src/RandomWriter/RandomWriterStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>
Expand Down
2 changes: 1 addition & 1 deletion csharp/static-site/src/StaticSite/StaticSite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@
"Arn"
]
},
"Runtime": "nodejs10.x",
"Runtime": "nodejs14.x",
"Environment": {
"Variables": {
"BUCKET": {
Expand Down
10 changes: 5 additions & 5 deletions typescript/api-cors-lambda-crud-dynamodb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion typescript/appsync-graphql-eventbridge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
2 changes: 1 addition & 1 deletion typescript/cognito-api-lambda/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' ],
Expand Down
2 changes: 1 addition & 1 deletion typescript/lambda-api-ci/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.2
phases:
install:
runtime-versions:
nodejs: 12
nodejs: 14
commands:
- npm install

Expand Down
2 changes: 1 addition & 1 deletion typescript/lambda-api-ci/lib/lambda-api-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')),
Expand Down
2 changes: 1 addition & 1 deletion typescript/my-widget-service/widget_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down