Skip to content

Commit

Permalink
chore(pipelines): migrate approve lambda handler (#27828)
Browse files Browse the repository at this point in the history
This PR moves the approve lambda 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 committed Nov 10, 2023
1 parent 633dbe2 commit 60c890c
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 104 deletions.

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 @@ -2364,7 +2364,7 @@
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "8aa652c34c594d3c7ff1fe10240de14208e0d856f77eb4d56bd01bd9fc1f1273.zip"
"S3Key": "c2adac8ea3baf51ce56c33ef5da361ea693f7ed128ddbc9777c557e9e7c741a6.zip"
},
"Handler": "index.handler",
"Role": {
Expand Down Expand Up @@ -2708,7 +2708,7 @@
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "8aa652c34c594d3c7ff1fe10240de14208e0d856f77eb4d56bd01bd9fc1f1273.zip"
"S3Key": "c2adac8ea3baf51ce56c33ef5da361ea693f7ed128ddbc9777c557e9e7c741a6.zip"
},
"Handler": "index.handler",
"Role": {
Expand Down

This file was deleted.

This file was deleted.

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.

1 change: 1 addition & 0 deletions packages/@aws-cdk/custom-resource-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@aws-sdk/client-ssm": "3.421.0",
"@aws-sdk/client-kinesis": "3.421.0",
"@aws-sdk/client-kms": "3.421.0",
"@aws-sdk/client-codepipeline": "3.421.0",
"@aws-sdk/client-redshift": "3.421.0",
"@aws-sdk/client-account": "3.421.0",
"@smithy/util-stream": "^2.0.12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jest.mock('@aws-sdk/client-codepipeline', () => {

jest.setTimeout(10_000);

import { handler } from '../../lib/private/approve-lambda/index';
import { handler } from '../../lib/pipelines/approve-lambda/index';

describe('approve-lambda handler', () => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ApplicationSecurityCheck extends Construct {
this.preApproveLambda = new lambda.Function(this, 'CDKPipelinesAutoApprove', {
handler: 'index.handler',
runtime: lambda.Runtime.NODEJS_18_X,
code: lambda.Code.fromAsset(path.resolve(__dirname, 'approve-lambda')),
code: lambda.Code.fromAsset(path.resolve(__dirname, '..', '..', '..', 'custom-resource-handlers', 'dist', 'pipelines', 'approve-lambda')),
timeout: Duration.minutes(5),
});

Expand Down
Empty file.
48 changes: 0 additions & 48 deletions packages/aws-cdk-lib/pipelines/lib/private/approve-lambda/index.ts

This file was deleted.

0 comments on commit 60c890c

Please sign in to comment.