auth headless is missing the following inputParameters googleAppIdUserPool, googleAppSecretUserPool
Amplify CLI Version
12.3.0
Question
I went through the following issue: https://github.com/aws-amplify/amplify-cli/issues/9176 and the following docs: https://docs.amplify.aws/javascript/tools/cli/usage/headless/#headless-category-payloads,
but I don't understand how to utilize amplify update auth --headless in the CI/CD pipeline.
Currently, we just do amplifyPush --simple to build the backend. Where does that fit in?
Hey @redjonzaci, thank you for reaching out. Could you try adding the OAuth parameters as environment variables and rebuild on Amplify hosting , AMPLIFY_GOOGLE_CLIENT_ID, AMPLIFY_GOOGLE_CLIENT_SECRET environment variables are accessible by default within the Amplify console.
Please refer to the documentation
similar issue: https://github.com/aws-amplify/amplify-hosting/issues/2039#issuecomment-1132790185
Trying it now, but it seems like the repeated issue needs a documentation / error message update?
@ykethan it worked, thank you!
@redjonzaci glad to hear that, i am working on a reproduction for this behavior.
Note: https://github.com/aws-amplify/amplify-cli/issues/11010: Tried reproducing using the steps on this issue but was not able to reproduce the issue.
We had an existing app and then did amplify update auth. On next PR, we got the error.
On diving deeper it appears the amplifyPush --simple runs a headless pull and init push without the auth config. adding the client config as environment variables should add the auth config on the push.
Closing the issue.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Problem : auth headless is missing the following inputParameters googleAppIdUserPool, googleAppSecretUserPool...
Solution: amplify pull --appId d2w68xxxxxxxxx --envName dev (get the appid from your amplify backend)