1 Answer
- Newest
- Most votes
- Most comments
0
Yes, this appears to be a known issue with Amplify Gen 2, particularly during the first build attempt in a CI/CD pipeline. The error you're encountering, where the `manifest.json` file is missing, is likely due to a race condition between the CDK synthesis process and the schema/codegen completion.
This issue often occurs because the CDK assembly tries to run before the necessary files have been generated by the Amplify backend processes. It's a timing problem that can be especially noticeable in CI/CD environments where processes are running concurrently.
While there isn't an official documented fix for this specific issue yet, there are a few workarounds you can try:
1. Add a delay or sleep command before the CDK synthesis step in your build process. This gives more time for the schema and codegen to complete.
2. Split your backend deployment into two separate steps: one for generating the necessary files, and another for the actual deployment. This can help ensure all required files are present before CDK synthesis begins.
3. Implement a retry mechanism in your CI/CD pipeline. If the first attempt fails due to the missing manifest, automatically trigger a second attempt which often succeeds.
4. Check if there are any recent updates to the Amplify CLI or backend packages that might address this issue. Keeping your dependencies up-to-date can sometimes resolve such problems.
As for an ETA on an official fix, it's best to keep an eye on the Amplify GitHub repository and forums for updates. The Amplify team is generally responsive to such issues and may be working on a more permanent solution.
In the meantime, implementing one of the workarounds mentioned above should help you proceed with your deployments while waiting for an official fix.
Sources
My Amplify environment started to fail in a sudden. Bootstrap Error | AWS re:Post
Build container ran out of memory | AWS re:Post
answered 10 months ago
Relevant content
- asked 8 months ago
- asked 8 months ago
- AWS OFFICIALUpdated 4 years ago
