Description
Describe the bug
Previously resolved issue allows to make a step forward, but the whole process of deployment of angular app to Amplify still does not work.
The following error appears during cdk deploy execution
.....
.....
`Bundling asset /com.amazonaws.cdk.custom-resources.amplify-asset-deployment-provider/amplify-asset-deployment-on-event/Code/Stage...
esbuild cannot run locally. Switching to Docker bundling.
✘ [ERROR] Could not resolve "/tmp/jsii-kernel-yOr44c/node_modules/@aws-cdk/aws-amplify-alpha/custom-resource-handlers/dist/aws-amplify-alpha/asset-deployment-handler/index.js"
`
Expected Behavior
Amplify branch should be created from an asset
Current Behavior
Amplify branch is not created from an asset
Reproduction Steps
Execute the code
amplify_app = amplify.App(
self,
"Amplify",
app_name="my-app",
platform=amplify.Platform.WEB
)
deployed_bundle = assets.Asset(
self,
"DeployedBundle",
path=bundle_path)
amplify_app.add_branch(
"AmplifyBranch",
branch_name=env,
asset=deployed_bundle,
auto_build=False,
pull_request_preview=False
)
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
aws-cdk.aws-amplify-alpha==2.123.0a0
Framework Version
aws-cdk-lib==2.123.0
Node.js Version
18.14.0
OS
Windows 11 Pro
Language
Python
Language Version
3.10.11
Other information
No response