Skip to content

Commit 0f168f1

Browse files
authored
chore(redshift-alpha): migrate cluster parameter change reboot handler (#27883)
This PR moves the cluster parameter change reboot handler from aws-cdk-lib to our new centralized location for custom resource handlers in the [@aws-cdk](https://github.com/aws-cdk) package. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent c02471d commit 0f168f1

File tree

15 files changed

+34175
-24
lines changed

15 files changed

+34175
-24
lines changed

packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export class Cluster extends ClusterBase {
708708
const rebootFunction = new lambda.SingletonFunction(this, 'RedshiftClusterRebooterFunction', {
709709
uuid: '511e207f-13df-4b8b-b632-c32b30b65ac2',
710710
runtime: lambda.Runtime.NODEJS_18_X,
711-
code: lambda.Code.fromAsset(path.join(__dirname, 'cluster-parameter-change-reboot-handler')),
711+
code: lambda.Code.fromAsset(path.join(__dirname, '..', '..', 'custom-resource-handlers', 'dist', 'aws-redshift-alpha', 'cluster-parameter-change-reboot-handler')),
712712
handler: 'index.handler',
713713
timeout: Duration.seconds(900),
714714
});

packages/@aws-cdk/aws-redshift-alpha/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"@aws-cdk/cdk-build-tools": "0.0.0",
8585
"@aws-cdk/integ-runner": "0.0.0",
8686
"@aws-cdk/pkglint": "0.0.0",
87+
"@aws-cdk/custom-resource-handlers": "0.0.0",
8788
"@aws-sdk/client-redshift": "^3.421.0",
8889
"@aws-sdk/client-redshift-data": "^3.421.0",
8990
"@aws-sdk/client-secrets-manager": "^3.421.0",

0 commit comments

Comments
 (0)