You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As diligent students of the readme will know already, I should've instead had src=DockerImageName(image.image_uri). The above breaks.
But, I'm raising this because it broke in a difficult-to-diagnose way: The synthesis completed and started CloudFormation deployment, to ultimately fail with a cryptic "Invalid PhysicalResourceId" message. It took some time and Google-fu to realise I needed to:
Try cdk deploy again with --no-rollback to avoid obliterating the part-built resources
Figure out which Lambda in my account was backing that particular custom resource based on the LogicalResourceId (this is a complex stack, so there was a bit of searching to do)
Open the CloudWatch logs and find the2022/09/27 15:10:27 sending status failed: can't get SrcImage message hinting that something was up with the src configuration.
It feels like this was a pretty easy mistake to make, so 2 questions:
Could this construct maybe be extended to handle DockerImageAsset inputs directly & correctly?
Regardless, would it be possible to make the error handling a bit more informative here? Ideal if it could fail earlier in the process, but even a more understandable error later on would be useful!
The text was updated successfully, but these errors were encountered:
Confession time: Today I was bad at reading the docs and paid the price...
I tried something along the lines of (in Python CDK):
As diligent students of the readme will know already, I should've instead had
src=DockerImageName(image.image_uri)
. The above breaks.But, I'm raising this because it broke in a difficult-to-diagnose way: The synthesis completed and started CloudFormation deployment, to ultimately fail with a cryptic "Invalid PhysicalResourceId" message. It took some time and Google-fu to realise I needed to:
cdk deploy
again with--no-rollback
to avoid obliterating the part-built resources2022/09/27 15:10:27 sending status failed: can't get SrcImage
message hinting that something was up with thesrc
configuration.It feels like this was a pretty easy mistake to make, so 2 questions:
DockerImageAsset
inputs directly & correctly?The text was updated successfully, but these errors were encountered: