Amplify Build failed with version 4.21.3 - Error: auth headless is missing the following inputParams googleAppIdUserPool, googleAppSecretUserPool #7194
Labels
to-be-reproduced
Used in order for Amplify to reproduce said issue
The app works fine locally and uses cognito with a federated login through google. Login works fine running on my local system, as does all the rest of the functionality. It is a simple VUE with just 2 pages but it uses auth, api, and has 2 cron'ed functions that work on the regular schedule. What I am trying to do is deploy my front end but the BUILD fails coming from github triggers on my master branch. Everytime I push to master it tries to deploy to AWS Amplify and I get this when it fails:
(taken from the downloaded build logs.)
The backend functions and can be accessed when I hit it running the code locally, and I can see all of my data in DynamoDB, so I know the full backend is working. The front end just has an issue deploying. I saw in other comments the suggestion to add some configuration for the google account clientId to the team-provider-info.json file. I noticed that mine (hostedUIProviderCreds in amplifynewsscrapere0220fb9) was in a different format than the suggestion (googleClientId in Cognito node), neither seems to solve the issue:
Other suggestions included:
sudo amplify init --amplify "{\"envName\":\"dev\"}" --categories "{\"auth\":{\"googleAppIdUserPool\":\"googleAppId\",\"googleAppSecretUserPool\":\"googleAppSecret\"}}" --yes
That executed fine but that also didnt seem to address the issue.
my aws-exports:
`
const awsmobile = {
"aws_project_region": "us-east-1",
"aws_appsync_graphqlEndpoint": "https://XXXXXXXXXXXXXXXXXXXXXXXXX.appsync-api.us-east-1.amazonaws.com/graphql",
"aws_appsync_region": "us-east-1",
"aws_appsync_authenticationType": "API_KEY",
"aws_appsync_apiKey": "XXXXXXXXXXXXXXXXXXXXXXXXX",
"aws_cognito_identity_pool_id": "us-east-1:XXXXXXXXXXXXXXXXXXXXXXXXX",
"aws_cognito_region": "us-east-1",
"aws_user_pools_id": "us-east-1_XXXXXXXXX",
"aws_user_pools_web_client_id": "XXXXXXXXXXXXXXXXXXXXXXXXX",
"oauth": {
"domain": "XXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXX-dev.auth.us-east-1.amazoncognito.com",
"scope": [
"phone",
"email",
"openid",
"profile",
"aws.cognito.signin.user.admin"
],
"redirectSignIn": "http://localhost:8080/",
"redirectSignOut": "http://localhost:8080/",
"responseType": "code"
},
"federationTarget": "COGNITO_USER_POOLS"
};
`
I would love a good explanation if anyone knows why this is failing. Any help or suggestions would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: