-
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
Hosting with imported Cognito Auth fails to build the backend #2269
Comments
Hey @tomasff 👋 thanks for taking the time to file this and include those details! I was able to successfully reproduce the issue by taking the following steps:
Note: these values are present and available in Marking this as a bug 🙂 |
Hey @tomasff 👋 I found a workaround for this and it may require additional tweaking beyond my minimal reproduction, but at a high level we can replace |
Thank you! Using the workaround allows my build to complete now 👍 |
Thank you so much @josefaidt!! This solved my build issue 🙌 |
@ocallarob @tomasff could you try to define these variables and see if solves your problem, it looks like the documentation is outdated: Transferring to console as it seems to be a documentation issue on their part also missing docs for SIWA parameters. |
I think what's going on is a chicken and egg problem. Having imported the Cognito details into my project (resulting in the details being added to However to initialise the project so that the Congnito details can be read This is why the env var solution works as it breaks this loop, but also sucks because it means that whole feature of importing Cognito into Amplify is broken (assuming you're using CI/CD). The solution, which is better IMO is to do what others have done. Have a custom "init script" based on CC #1271 |
What worked for me was adding the Environment variables to Please see here for all available environment variables. |
Our documentation is up-to date around the environment variables needed for social sign in: |
This issue is now closed. Comments on closed issues are hard for our team to see. |
This issue has been automatically locked. |
Before opening, please confirm:
How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
latest
What operating system are you using?
WSL Ubuntu
Amplify Categories
auth, hosting
Amplify Commands
Not applicable
Describe the bug
Upon trying to deploy this application which uses imported auth with Cognito, the build fails mentioning that the input parameters userPoolId, webClientId, nativeClientId are missing. I have checked the Amplify Environment variables docs but didn't find environment variables specified to set these input parameters.
Expected behavior
Environment variables should be available to set these parameters.
Reproduction steps
The application I'm trying to deploy is available here.
GraphQL schema(s)
No response
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: