Open ajohnston1219 opened 1 year ago
Looks like the dockerfile is missing but I can't reproduce this in my environment.
Can you install the latest AWS CDK v2 and try again? I noticed you are using 2.43.1 which is a very old version.
This is working now, even with the old version. I guess this was maybe just a temporary issue with ECR or a local network issue. Either way, I will close this as it appeared to be a temporary issue.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
@ajohnston1219 problem has resurfaced again
@chudhunter I was able to resolve this by restarting my docker engine the second time it happened to me. I think it is a transient issue with docker. You can go to ECR and verify the requested container is there, so not sure why its not able to find it. This may be a docker issue and not a CDK issue though.
Describe the bug
When building a
NodejsFunction
using thebundling.forceDockerBundling: true
flag, the docker image cannot be pulled due tofailed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests latest]: 400 Bad Request
.Expected Behavior
The docker image is pulled and the lambda function is bundled properly
Current Behavior
cdk diff
results in:Reproduction Steps
create a lambda function like:
Then run
cdk diff
, or any othercdk
command that bundles the functionPossible Solution
From what I can tell from an online search, this has something to do with the image type? I tried ARM_64 and X86_64, but both failed
Additional Information/Context
OS: Mac OS 13.3.1 (22E261) CDK Version: 2.43.1 (build c1ebb85) Docker version 20.10.24, build 297e128
CDK CLI Version
2.43.1
Framework Version
No response
Node.js Version
16.x
OS
Mac OS 13.3.1
Language
Typescript
Language Version
5.0.4
Other information
This was the first stack overflow post when I searched the error: https://stackoverflow.com/questions/68984133/error-failed-to-solve-with-frontend-dockerfile-v0-failed-to-create-llb-defini