Describe the bug
The issue #28289 was not resolved. Adding of dev dependency to @aws-cdk/custom-resource-handlers package inside @aws-cdk/aws-amplify-alpha without publishing @aws-cdk/custom-resource-handlers npm package won't have any effect on the described bug.
When running stack with the following code (Python) it is not possible to deploy to AWS Amplify from asset as it is described in documentation
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
)
Expected Behavior
Amplify branch should be created from an asset
Current Behavior
Amplify branch is not created from an asset
The following error appears

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.118.0a0
Framework Version
aws-cdk-lib==2.118.0
Node.js Version
18.14.0
OS
Windows 11 Pro
Language
Python
Language Version
3.10.11
Other information
No response
Describe the bug
The issue #28289 was not resolved. Adding of dev dependency to @aws-cdk/custom-resource-handlers package inside @aws-cdk/aws-amplify-alpha without publishing @aws-cdk/custom-resource-handlers npm package won't have any effect on the described bug.
When running stack with the following code (Python) it is not possible to deploy to AWS Amplify from asset as it is described in documentation
The code
Expected Behavior
Amplify branch should be created from an asset
Current Behavior
Amplify branch is not created from an asset
The following error appears
Reproduction Steps
Execute the code
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
aws-cdk.aws-amplify-alpha==2.118.0a0
Framework Version
aws-cdk-lib==2.118.0
Node.js Version
18.14.0
OS
Windows 11 Pro
Language
Python
Language Version
3.10.11
Other information
No response