-
Notifications
You must be signed in to change notification settings - Fork 826
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
AppId mismatch failure in preview build of backend used across apps #13973
Comments
The same thing is happening to me. Is there any update? |
Hey folks, thank you for reaching. Could you provide us some additional on the reproduction steps? |
Hi @ykethan, thank you for checking. The situation is exactly what first comment and @felixpro describes. Just to clarify, it is as follows: OverviewWe have two apps: A and B. So repro steps would be:
short-term workaroundGoing to app > Hosting > Build Configuration > Build Image Configuration and pin the Amplify CLI version as Why workaround is not desirableWe need to pin the CLI version and never be able to catch up with the latest |
@felixpro @Ruci0094 thank you for the information. I was able to reproduce the issue by adding the |
Same as Ruci0094, amplify-meta is ignored in my repo. |
thank you for the confirmation on the gitignore. On a quick check with Amplify team, they suggest verifying your version control system as while the file maybe gitignored for any changes the file may have been pushed/committed to the repository previously. Additionally, if the file is indeed not present version control system would be happy in diving into the issue over a call. I am available on discord and my handle is |
Hey @ykethan I also added you on Discord. I confirm there is not meta file in the repo. |
Joining in here, same issue. Any resolution yet or in the near future? Thanks |
hey folks, wanted to provide an update. if the repository currently does not contain a |
Adding that environment variable in the amplify console, and then setting the build settings back to the latest CLI did seem to work. Does adding that variable have any other potential negative side effects that I should be aware of, or does that basically let it work how it was working in version 12.12.6? I should still be able to deploy back-end updates through this app despite setting that variable right? Thanks for the quick reply! |
Yeah so actually I'm not sure this environment variable is a viable option, it actually does not update the back-end at all when adding this variable. As the name implies, it's skipping over updating the backend on the deployment. When using the amplify cli build 12.12.6 workaround as stated above, it still does update the backend code. That is what we need, not to skip the backend updates. In our case the reason we ended up in this situation is because the amplify app was started out as a manually deployed app, and there is no good way to switch it over to an automated CI/CD deployed app. So we had to create another "amplify app" in the console just to connect it to our repository to our first amplify app, and that is how we are in this situation. There never has been a good way to migrate over to CI/CD when the app starts out as manually deployed. I think many people are in that boat because when doing development you just assume lets do it manually when starting out but then realize later you got stuck. |
As @121940kz pointed out, it occurs in a branch even when we need to deploy (update) backend so I think |
We are running into the same exact issue and have provided build logs in AWS support case ID: 173089142200287 Like others, we have temporarily pinned the Amplify CLI Version to 12.12.6 as to avoid getting bit by recent validation changes introduced with 12.13.0. Similar to what was pointed out by others, we too are in a scenario where we have a deprecated application (let's call it app "B") that is associated with a backend that's being used by an active application (let's call it app "A"). And thus, when we try to build app "A", we get the mismatch appId (of app "B"). |
For anybody else who is afflicted with this issue, providing a little update from our case that we cut with AWS:
Will provide updates as I receive them. |
Thank you @itsmemattchung for sharing your updates! That is helpful. Hope there will be an opt-out option soon. |
So continuing to push the internal ticket and there is a fix (see below) that just got merged in. Essentially, once it's (i.e. 12.13.x) rolled out, you will be able to set an external environment variable (below) to bypass this failing check (for those of who have shared backends):
Although I'm unsure on the internal AWS service's team deployment, I'm hoping to get an ETA in the next day or so! |
Amplify CLI version 12.13.1 has been released providing this fix. To upgrade amplify CLI run |
Same here! Thank you everyone involved for your support :) |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Amplify CLI Version
latest (12.13.0)
Overview
We have several apps, assuming their appIds are
A
andB
.App
A
is not actively used anymore, but we still uses the backend resources associated to AppIdA
. Therefore, even though we interact withB
when we configure preview builds, our code'steam-provider-info.json
has appId =A
.With #13954, it started to fails with
AppId mismatch
which checks the appId from meta and appId from commandline.Questions
Considering it's possible to use Amplify backends across apps, I feel it's possible that
AppId
of the app on console does not match withappId
retrieved from metafiles (which is for backend, IIUC).Trace
The text was updated successfully, but these errors were encountered: