Skip to content

Commit a1508af

Browse files
authored
fix(amplify): deploy asset Custom Resource points to TS file (#18166)
The .ts file is not packaged and exported when distributed resulting in the CDK being unable to find the index file. This has been corrected to point to the .js version instead. ---- Error currently observed (CDK 1.137.0) ``` Cannot find entry file at /home/samkio/projects/activity-management-react-app/packages/server-cdk-stack/node_modules/@aws-cdk/aws-amplify/lib/asset-deployment-handler/index.ts Subprocess exited with error 1 ``` *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent e2cb83b commit a1508af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@aws-cdk/aws-amplify/lib/branch.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class AmplifyAssetDeploymentProvider extends NestedStack {
223223
{
224224
entry: path.join(
225225
__dirname,
226-
'asset-deployment-handler/index.ts',
226+
'asset-deployment-handler/index.js',
227227
),
228228
runtime: lambda.Runtime.NODEJS_14_X,
229229
handler: 'onEvent',
@@ -247,7 +247,7 @@ class AmplifyAssetDeploymentProvider extends NestedStack {
247247
{
248248
entry: path.join(
249249
__dirname,
250-
'asset-deployment-handler/index.ts',
250+
'asset-deployment-handler/index.js',
251251
),
252252
runtime: lambda.Runtime.NODEJS_14_X,
253253
handler: 'isComplete',

0 commit comments

Comments
 (0)