-
Notifications
You must be signed in to change notification settings - Fork 116
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
Console build fails during initialization of environment #223
Comments
Are you using the latest version of the Amplify CLI? If not please try: https://docs.aws.amazon.com/amplify/latest/userguide/custom-build-image.html#setup-live-updates Also, are you using the Console to create a new backend environment? |
@swaminator I setup the live updates as described and set it to latest, but the build still failed. For setting up the backend, most everything was setup using my Amplify CLI. I tweaked some settings using the console afterwards but nothing that should have broken it/ it still works using localhost with the same cloud resources. |
@mcg5de please refer to #206 (comment) |
I was able to get that workaround working. Thank you for the help! |
So following this thread I was able to implement the workaround talked about in #206, and up until now that had worked to fix the initial issue of the console not seeing the parameters. Describe the bug I found this specific issue discussed here aws-amplify/amplify-cli#1194 (comment) as well as seemingly fixed in this merge here aws-amplify/amplify-cli#1668 (comment). I'm not 100% sure if this is the driving issue behind the build failures, but it seems to be the only thing changing between a working and a failing build. Expected Behavior OS Version Additional Context |
@mcg5de Do you see a list of inputParams which are missing? Also, can you share your headless script? |
Yes @kaustavghosh06 the missing params are |
@mcg5de In the following section of the script (the one bolded out), could you replace that with amplify init --amplify ${AMPLIFY} --providers ${PROVIDERS} --codegen ${CODEGEN} --categories ${CATEGORIES} --yes; init_env () { |
@kaustavghosh06 That seems to have fixed it so now all of my branches are building correctly. Thanks for the help with the fix. |
Include googleAppIdUserPool and googleAppSecretUserPool in auth categories flag.
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
I am developing a web app using React and deploying through Amplify Console. So far I had successfully built several commits on Amplify Console on the master branch of my repo, but on the next build after a commit that removed 2 other amplify cli envs other than master, the build began to fail despite the fact that those edits should not have affected it. The error is during the backend build portion of the build step of the process and is
Error: auth headless init is missing the following inputParams googleAppIdUserPool, googleAppSecretUserPool
(Full log below). Despite failing on the Amplify Console, the repo can be cloned and Amplify init run without issue on a local computer. The app also then runs like normal on localhost.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful Build
Additional context
Attempts to revert to a commit earlier than the first failing build also result in a failing build despite previously having been built successfully.
I am still getting used to using the Amplify framework so forgive me if I'm missing something obvious. I found a similar issue over at aws-amplify/amplify-js#2478 (comment) but have no idea what changed that fixed that issue.
The text was updated successfully, but these errors were encountered: