aws-amplify / aws-amplify/amplify-hosting

[PR Previews] Amplify Console Build Failure

Open
#1,187 2 comments 2 reactions 0 assignees View on GitHub
backend-builds pending-triage web-previews
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

**App ARN**:
arn:aws:amplify:eu-west-1:742504421912:apps/d2tzquzvkco6a2
**Region**:
eu-west-1
**Issue**
The backend environment build fails for PR previews on applications with social sign-in.

The issue **only** applies on the preview environments.

### `dev` branch preview settings:
Screenshot 2020-11-01 at 14 53 48

### Env variables are set up as suggested in the [documentation](https://docs.aws.amazon.com/amplify/latest/userguide/environment-variables.html#creating-a-new-backend-environment-with-authentication-parameters):
Screenshot 2020-11-01 at 14 53 06

**Error message**
`Error: auth headless is missing the following inputParams googleClientId, facebookAppId`

**Notes**
This issue seems to have been solved for "regular" branches from what I can read [here](https://github.com/aws-amplify/amplify-console/issues/206).
Would a custom amplify build script solve this issue?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the PR preview backend build with the documented authentication environment variables and compare its settings with a regular branch, using the reported error as the checkpoint. Review the linked environment-variable documentation and issue #206; done means preview environments build successfully for applications using Google or Facebook sign-in.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
authentication, ci-cd, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.