Skip to content

Commit 2c9f359

Browse files
committed
address review comments
1 parent 0867bc9 commit 2c9f359

File tree

4 files changed

+14
-24
lines changed

4 files changed

+14
-24
lines changed

cdk-custom-resource-with-wait-condition/example-pattern.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@
77
"introBox": {
88
"headline": "How it works",
99
"text": [
10-
"AWS Lambda functions have a 15-minute execution timeout, limiting CloudFormation custom resources to short-running",
11-
"operations. This pattern extends custom resource execution time to 12 hours using CloudFormation Wait Conditions.",
12-
"The architecture uses four components working together: A Custom Resource Handler Lambda receives CloudFormation",
13-
"lifecycle events and immediately starts a Step Function execution, then returns success to prevent timeouts.",
14-
"The Step Function orchestrates the long-running process with built-in retry mechanisms and error handling.",
15-
"When the process completes, a Completion Signal Handler Lambda sends success or failure signals to a Wait",
16-
"Condition Handle URL. The Wait Condition blocks CloudFormation stack completion until receiving the signal.",
17-
"This decouples custom resource lifecycle management from process execution, enabling asynchronous processing",
18-
"with proper CloudFormation integration. The Step Function provides visual workflow monitoring and state management",
19-
"while the Wait Condition ensures stack operations complete only after the long-running process finishes.",
20-
"The pattern deploys two Lambda functions, one Step Function, a Wait Condition Handle, and a Wait Condition.",
21-
"Use cases include database migrations, complex infrastructure provisioning, and third-party system integrations",
22-
"that exceed Lambda's 15-minute limit."
10+
"AWS Lambda functions have a 15-minute execution timeout, limiting CloudFormation custom resources to short-running operations. This pattern extends custom resource execution time to 12 hours using CloudFormation Wait Conditions. The architecture uses four components working together: A Custom Resource Handler Lambda receives CloudFormation lifecycle events and immediately starts a Step Function execution, then returns success to prevent timeouts. The Step Function orchestrates the long-running process with built-in retry mechanisms and error handling. When the process completes, a Completion Signal Handler Lambda sends success or failure signals to a Wait Condition Handle URL. The Wait Condition blocks CloudFormation stack completion until receiving the signal.",
11+
"This decouples custom resource lifecycle management from process execution, enabling asynchronous processing with proper CloudFormation integration. The Step Function provides visual workflow monitoring and state management while the Wait Condition ensures stack operations complete only after the long-running process finishes. The pattern deploys two Lambda functions, one Step Function, a Wait Condition Handle, and a Wait Condition.",
12+
"Use cases include database migrations, complex infrastructure provisioning, and third-party system integrations that exceed Lambda's 15-minute limit."
2313
]
2414
},
2515
"gitHub": {
@@ -69,4 +59,4 @@
6959
"linkedin": "dmitry-gulin"
7060
}
7161
]
72-
}
62+
}

cdk-custom-resource-with-wait-condition/lib/demo-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class DemoStack extends Stack {
2222
const commonLambdaProps: Partial<NodejsFunctionProps> = {
2323
architecture: Architecture.ARM_64,
2424
loggingFormat: LoggingFormat.JSON,
25-
runtime: Runtime.NODEJS_22_X,
25+
runtime: Runtime.NODEJS_24_X,
2626
memorySize: 256,
2727
};
2828

cdk-custom-resource-with-wait-condition/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
"cdk": "cdk"
1111
},
1212
"devDependencies": {
13-
"@tsconfig/node22": "^22.0.2",
14-
"@types/node": "24.10.0",
15-
"aws-cdk": "2.1031.1",
16-
"esbuild": "^0.25.12",
13+
"@tsconfig/node24": "^24.0.3",
14+
"@types/node": "24.10.1",
15+
"aws-cdk": "2.1033.0",
16+
"esbuild": "^0.27.1",
1717
"ts-node": "^10.9.2",
1818
"typescript": "~5.9.3"
1919
},
2020
"dependencies": {
21-
"@aws-sdk/client-sfn": "^3.922.0",
22-
"@types/aws-lambda": "^8.10.157",
23-
"aws-cdk-lib": "2.222.0",
24-
"constructs": "^10.4.2"
21+
"@aws-sdk/client-sfn": "^3.946.0",
22+
"@types/aws-lambda": "^8.10.159",
23+
"aws-cdk-lib": "2.232.1",
24+
"constructs": "^10.4.3"
2525
}
2626
}

cdk-custom-resource-with-wait-condition/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node22",
2+
"extends": "@tsconfig/node24",
33
"compilerOptions": {
44
"outDir": "./dist",
55
"inlineSourceMap": true,

0 commit comments

Comments
 (0)