Skip to content

Commit

Permalink
chore(redshift-alpha): migrate cluster parameter change reboot handler (
Browse files Browse the repository at this point in the history
#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*
  • Loading branch information
colifran authored Nov 8, 2023
1 parent c02471d commit 0f168f1
Show file tree
Hide file tree
Showing 15 changed files with 34,175 additions and 24 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ export class Cluster extends ClusterBase {
const rebootFunction = new lambda.SingletonFunction(this, 'RedshiftClusterRebooterFunction', {
uuid: '511e207f-13df-4b8b-b632-c32b30b65ac2',
runtime: lambda.Runtime.NODEJS_18_X,
code: lambda.Code.fromAsset(path.join(__dirname, 'cluster-parameter-change-reboot-handler')),
code: lambda.Code.fromAsset(path.join(__dirname, '..', '..', 'custom-resource-handlers', 'dist', 'aws-redshift-alpha', 'cluster-parameter-change-reboot-handler')),
handler: 'index.handler',
timeout: Duration.seconds(900),
});
Expand Down
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-redshift-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/integ-runner": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@aws-cdk/custom-resource-handlers": "0.0.0",
"@aws-sdk/client-redshift": "^3.421.0",
"@aws-sdk/client-redshift-data": "^3.421.0",
"@aws-sdk/client-secrets-manager": "^3.421.0",
Expand Down
Loading

0 comments on commit 0f168f1

Please sign in to comment.