-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hosting CI/CD fails due to custom resource depending on storage #13532
Comments
Hey @armenr, thank you for reaching out. The issue does look similar to #11847, referring to the comment #11847 (comment) it appears a fix was released on CLI v11.0.3. If the issues does not occur locally and occurs on CICD, does the console app use a live package override that ties Amplify CLI to an older version or install on the yml file? |
@ykethan - I am installing the latest CLI package using both the override, as well as a manual install command in my |
@armenr, thank you for the information. I was able to reproduce the issue, marking as bug. |
Thanks for the quick turn-around on investigating this, and for confirmation that we're not crazy 😂 . I'll try the workaround and report back, but for now, this approach I'll experiment if I have free time and report back. |
I can confirm that this workaround #11847 (comment) , reordering |
That workaround is unreliable - the json may get reordered or regenerated without warning. |
Any updates on this ? |
Just dropped in to see what condition our condition is in... :) |
Our team is facing this issue. Any update? |
How did you install the Amplify CLI?
pnpm
If applicable, what version of Node.js are you using?
20
Amplify CLI Version
12.10.1
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
aws-amplify/amplify-hosting#2478
^^
This bug is still a thing, in January 2024. Locally, I am able to build/push a custom CDK resource that contains this:
but in the Amplify CI/CD pipeline, this fails miserably with the error:
And just like in the comments for the GitHub issue...this appears to work:
Expected behavior
Following the Amplify docs and instructions generated by the CLI and in the docs, I'd expect to be able to use this pattern, without my builds breaking, inexplicably.
Reproduction steps
amplify push
--> everything worksgit push
Project Identifier
e800fd03f8e9a7692235717d7b1bf9d4
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: