diff --git a/packages/@aws-cdk/aws-amplify/lib/branch.ts b/packages/@aws-cdk/aws-amplify/lib/branch.ts index 05890ec2895a9..3298f7a246056 100644 --- a/packages/@aws-cdk/aws-amplify/lib/branch.ts +++ b/packages/@aws-cdk/aws-amplify/lib/branch.ts @@ -223,7 +223,7 @@ class AmplifyAssetDeploymentProvider extends NestedStack { { entry: path.join( __dirname, - 'asset-deployment-handler/index.ts', + 'asset-deployment-handler/index.js', ), runtime: lambda.Runtime.NODEJS_14_X, handler: 'onEvent', @@ -247,7 +247,7 @@ class AmplifyAssetDeploymentProvider extends NestedStack { { entry: path.join( __dirname, - 'asset-deployment-handler/index.ts', + 'asset-deployment-handler/index.js', ), runtime: lambda.Runtime.NODEJS_14_X, handler: 'isComplete',