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 @@ -17,6 +17,7 @@ class TestStack extends Stack {
preCompilation: true,
},
runtime: STANDARD_NODEJS_RUNTIME,
awsSdkConnectionReuse: true,
});

new lambda.NodejsFunction(this, 'ts-decorator-handler-tsconfig', {
Expand All @@ -29,6 +30,7 @@ class TestStack extends Stack {
preCompilation: true,
},
runtime: STANDARD_NODEJS_RUNTIME,
awsSdkConnectionReuse: true,
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const handler = new lambda.NodejsFunction(stack, 'Function', {
forceDockerBundling: true,
},
depsLockFilePath: path.join(__dirname, 'integ-handlers/pnpm/pnpm-lock.yaml'),
awsSdkConnectionReuse: true,
});

const integ = new IntegTest(app, 'PnpmTest', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SdkV2TestStack extends Stack {
this.lambdaFunction = new lambda.NodejsFunction(this, 'external', {
entry: path.join(__dirname, 'integ-handlers/dependencies.ts'),
runtime: STANDARD_NODEJS_RUNTIME,
awsSdkConnectionReuse: true,
bundling: {
minify: true,
// Will be installed, not bundled
Expand All @@ -39,6 +40,7 @@ class SdkV3TestStack extends Stack {
this.lambdaFunction = new lambda.NodejsFunction(this, 'external-sdk-v3', {
entry: path.join(__dirname, 'integ-handlers/dependencies-sdk-v3.ts'),
runtime: Runtime.NODEJS_18_X,
awsSdkConnectionReuse: true,
});
}
}
Expand All @@ -53,6 +55,7 @@ class SdkV3BundledStack extends Stack {
this.lambdaFunction = new lambda.NodejsFunction(this, 'bundle-sdk', {
entry: path.join(__dirname, 'integ-handlers/dependencies-sdk-v3.ts'),
runtime: Runtime.NODEJS_18_X,
awsSdkConnectionReuse: true,
bundling: {
bundleAwsSDK: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class TestStack extends Stack {
new lambda.NodejsFunction(this, 'ts-handler', {
entry: path.join(__dirname, 'integ-handlers/ts-handler.ts'),
runtime: STANDARD_NODEJS_RUNTIME,
awsSdkConnectionReuse: true,
bundling: {
minify: true,
sourceMap: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class TestStack extends Stack {

new lambda.NodejsFunction(this, 'esm', {
entry: path.join(__dirname, 'integ-handlers/esm.ts'),
awsSdkConnectionReuse: true,
bundling: {
format: lambda.OutputFormat.ESM,
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc"
}
]
}
Expand Down Expand Up @@ -213,7 +213,7 @@
},
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PublicSubnet1"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PublicSubnet1"
}
],
"VpcId": {
Expand All @@ -227,7 +227,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PublicSubnet1"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PublicSubnet1"
}
],
"VpcId": {
Expand Down Expand Up @@ -268,7 +268,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PublicSubnet1"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PublicSubnet1"
}
]
}
Expand All @@ -288,7 +288,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PublicSubnet1"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PublicSubnet1"
}
]
},
Expand Down Expand Up @@ -321,7 +321,7 @@
},
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PublicSubnet2"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PublicSubnet2"
}
],
"VpcId": {
Expand All @@ -335,7 +335,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PublicSubnet2"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PublicSubnet2"
}
],
"VpcId": {
Expand Down Expand Up @@ -376,7 +376,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PublicSubnet2"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PublicSubnet2"
}
]
}
Expand All @@ -396,7 +396,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PublicSubnet2"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PublicSubnet2"
}
]
},
Expand Down Expand Up @@ -429,7 +429,7 @@
},
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PrivateSubnet1"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PrivateSubnet1"
}
],
"VpcId": {
Expand All @@ -443,7 +443,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PrivateSubnet1"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PrivateSubnet1"
}
],
"VpcId": {
Expand Down Expand Up @@ -498,7 +498,7 @@
},
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PrivateSubnet2"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PrivateSubnet2"
}
],
"VpcId": {
Expand All @@ -512,7 +512,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc/PrivateSubnet2"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc/PrivateSubnet2"
}
],
"VpcId": {
Expand Down Expand Up @@ -549,7 +549,7 @@
"Tags": [
{
"Key": "Name",
"Value": "cdk-integ-lambda-nodejs/Vpc"
"Value": "cdk-integ-lambda-nodejs-aws-sdk-connection-reuse-stack/Vpc"
}
]
}
Expand Down Expand Up @@ -617,7 +617,7 @@
"tshandlervpcSecurityGroup587CC215": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "Automatic security group for Lambda Function cdkinteglambdanodejstshandlervpcAAE6104A",
"GroupDescription": "Automatic security group for Lambda Function cdkinteglambdanodejsawssdkconnectionreusestacktshandlervpcFBB4366A",
"SecurityGroupEgress": [
{
"CidrIp": "0.0.0.0/0",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading