-
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
Error: auth headless is missing the following inputParams userPoolId, webClientId, nativeClientId, identityPoolI #2039
Comments
Hi 👋, thanks for opening! While we look into this... If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions. Lastly, please make sure you've specified the |
Adding env vars and using them in }"
CATEGORIES=""
if [[ -z ${AMPLIFY_FACEBOOK_CLIENT_ID} && -z ${AMPLIFY_GOOGLE_CLIENT_ID} && -z ${AMPLIFY_AMAZON_CLIENT_ID} ]]; then
- CATEGORIES=""
+ if [[ -z ${AMPLIFY_USERPOOL_ID} && -z ${AMPLIFY_WEBCLIENT_ID} && -z ${AMPLIFY_NATIVECLIENT_ID} && -z ${AMPLIFY_IDENTITYPOOL_ID} ]]; then
+ CATEGORIES=""
+ else
+ AUTHCONFIG="{\
+ \"userPoolId\":\"${AMPLIFY_USERPOOL_ID}\",\
+ \"webClientId\":\"${AMPLIFY_WEBCLIENT_ID}\",\
+ \"nativeClientId\":\"${AMPLIFY_NATIVECLIENT_ID}\"\
+ \"identityPoolId\":\"${AMPLIFY_IDENTITYPOOL_ID}\"\
+ }"
+ CATEGORIES="{\
+ \"auth\":$AUTHCONFIG\
+ }"
+ fi
else
AUTHCONFIG="{\
\"facebookAppIdUserPool\":\"${AMPLIFY_FACEBOOK_CLIENT_ID}\",\ The problem is that depending on the environment this values changes... Is there anyway of loading them from |
I have the same issue but going in reverse - I created a backend via the console and am trying to |
I am having the exact same issue as described |
@bmccann36 Could you please share your app id and region? |
Testing out Auth with Amplify, the same issue. Following the documents here: https://docs.amplify.aws/start/getting-started/installation/q/integration/vue/ When I got to the add "Add authentication", then ran this command [ amplify add auth ], the build failed after a push. The build error is below. @Narrator If you want, I'll keep the App Id: d2lervtrgi1bea up. Region: us-east-1 2022-05-19T04:17:58.049Z [INFO]: �[0mAmplify AppID found: d2lervtrgi1bea. Amplify App name is: ahpreports�[0m |
Okay, so I figured it out. For my issues, I just added the variables to the "Environment variables" settings within the Amplify app settings. @Narrator provided the web page Please see here for all available environment variables. Some of the documentation doesn't make this clear. This was more of stubble into the answer and what if I do this and that to get this to work. |
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. |
Before opening, please confirm:
App Id
d59j1tvmglhyl
Region
eu-west-1
Amplify Console feature
Backend builds
Describe the bug
It is not possible to deploy the backend with an imported Auth component, the CI/CD build fails with:
Locally pushing the changes with
amplify push
causes no error. The information is in there, in some config files, is just that the deployment in the Amplify console is not reading it correctly.I'm trying to figure out if there is something missing in the
amplifyPush.sh
script, but the one in this repository seems outdated 🤷Expected behavior
The full-stack app gets deployed correctly without errors
Reproduction steps
amplify import auth
amplify push
to apply the changesBuild Settings
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: