amplify-cli: Added Sign in with apple, Having error HostedUIProvidersCustomResourceInputs (Custom::LambdaCallout) while Amplify Push
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.
- I have removed any sensitive information from my code snippets and submission.
How did you install the Amplify CLI?
curl
If applicable, what version of Node.js are you using?
v19.1.0
Amplify CLI Version
10.5.1
What operating system are you using?
Mac Ventura 13.0.1
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Amplify Categories
auth
Amplify Commands
push
Describe the bug
-
Updating auth via
amplify update authFollowed the steps mentioned in the reproduction steps. -
Applying change to cloud via
amplify pushFacing Error over here:
Cloud watch logs:
INFO InternalErrorException: Internal server error.
at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/json.js:52:27)
at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:686:14)
at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:688:12)
at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
{
"Status": "FAILED",
"Reason": "See the details in CloudWatch Log Stream: ******",
"PhysicalResourceId": "2022/12/02/[$LATEST]*****",
"StackId": "****",
"RequestId": "7550d102-29fc-4377-b31d-d5759f845fbd",
"LogicalResourceId": "HostedUIProvidersCustomResourceInputs",
"NoEcho": false,
"Data": {
"err": {
"message": "Internal server error.",
"code": "InternalErrorException",
"time": "2022-12-02T10:12:13.234Z",
"requestId": "dbc******",
"statusCode": 500,
"retryable": true
}
}
}
Expected behavior
I want to configure Sign in with Apple - OAuth social providers using amplify cli.
Reproduction steps
- Updating auth via
amplify update auth
- What do you want to do? Update OAuth social providers
- Select the identity providers you want to configure for your user pool: Google, Sign in with Apple
- Enter your Google Web Client ID for your OAuth flow: ****
- Enter your Google Web Client Secret for your OAuth flow: ***
- Enter your Services ID for your OAuth flow: com.myapp.myapp.sid
- Enter your Team ID for your OAuth flow: ****
- Enter your Key ID for your OAuth flow: ****
- Enter your Private Key for your OAuth flow: *****
Note: For the Private key I am entering key from .p8 file by removing -----BEGIN PRIVATE KEY-----, -----END PRIVATE KEY-----, \n, space at the end of line and pasting main private key in single line. (As mentioned here)
- Applying change to cloud via
amplify pushProduced error mentioned above
GraphQL schema(s)
# Put schemas below this line
Project Identifier
No response
Log output
# Put your logs below this line
Additional information
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 22 (11 by maintainers)
@HappyMakadiyaS I was able to solve the deployment by making sure the attribute mapping under hostedUIProviderMeta in cli-inputs.json was correct for the apple provider:
"[{\"ProviderName\":\"SignInWithApple\",\"authorize_scopes\":\"email\",\"AttributeMapping\":{\"email\":\"email\"}}]",@josefaidt, I have done
amplify update authmultiple times with the same credentials and tried to push. And it stores proper config in~/.aws/amplify/deployment-secrets.json.I am facing an
Internal server erroras I have said.Got the same issue here. Revert to previous CLI version don’t solve the issue.