amplify-cli: Amplify pull failed: auth headless is missing the following inputParams googleAppIdUserPool, googleAppSecretUserPool
Before opening, please confirm:
- I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- I have searched for duplicate or closed issues.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
12.18.4
Amplify CLI Version
7.5.4
What operating system are you using?
Windows
Amplify Categories
auth
Amplify Commands
pull
Describe the bug
While working in my dev environment I ran amplify pull -y which gave me the error
auth headless is missing the following inputParams googleAppIdUserPool, googleAppSecretUserPool
I’ve made no pending changes and ran a pull to make sure everything is up to date
Running amplify pull --appId ***** --envName localdev works but if i try to do a standard amplify pull afterwards the error comes back
Tried running amplify update auth without changing any of my OAuth settings just in case the update triggers a fix for newer versions but no luck
There’s an old issue for this here: https://github.com/aws-amplify/amplify-js/issues/7194 and I already have the environment variables AMPLIFY_GOOGLE_CLIENT_ID and AMPLIFY_GOOGLE_CLIENT_SECRET setup which was the suggested solution
I’m not on the latest version of amplify, been told to stick to 7.5.4 as there’s issues in the later versions that are also having an impact
Expected behavior
I expect it to pull and apply the changes from my environment
Reproduction steps
run amplify pull
GraphQL schema(s)
No response
Log output
Local changes detected.
Pulling changes from the cloud will override your local changes.
√ Successfully pulled backend environment localdev from the cloud.
× There was an error initializing your environment.
auth headless is missing the following inputParams googleAppIdUserPool, googleAppSecretUserPool
Error: auth headless is missing the following inputParams googleAppIdUserPool, googleAppSecretUserPool
at updateConfigOnEnvInit (C:\Users\jspen\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\@aws-amplify\amplify-category-auth\src\provider-utils\awscloudformation\index.js:136:15)
at C:\Users\jspen\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\@aws-amplify\amplify-category-auth\src\index.js:349:28
at C:\Users\jspen\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\promise-sequential\index.js:16:18
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 15 (3 by maintainers)
Hey @JackPenney 👋 thanks for raising this! On the latest version of the CLI (7.6.2) I was able to reproduce using the following steps:
amplify init -yamplify add auth> Default Social… > add Google credentialsamplify push -yamplify add functionamplify pull -yHey @ganipcanot my appId is: d1y0lxfx9s7bhz The region is: eu-west-1
@ammarkarachi I’ve updated to CLI v7.6.3 and ran
amplify pulland got the following error in the console: