'Serverless deployment error - AppleIdentityProvider - Provided private key cannot be used
I am trying to deploy a serverless backend code to AWS. The code handles device registrations of ios devices with apple as Idp.
Got the following error:
Serverless Error ---------------------------------------
An error occurred: AppleIdentityProvider - Provided private key cannot be used for Sign in with Apple. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: c92xxxx-xxxxx-xxx-xx-x4c; Proxy: null).
Notes: A private key from a previous developer, is already present as a Parameter in Systems manager>>parameter store.
Q1) Does sls deploy expect a private_key to be stored on my laptop from where I am deploying? Q2) I am dealing with backend code only, and not working on an ios app code directly. Why a private key is needed here?
Appreciate early response from experienced friends in this domain.
Many Thanks.
Solution 1:[1]
This is resolved.
the right key reference was missing in one of the yaml files.
Solution 2:[2]
It means that your key has not been found. Please check your configuration files. I think you lost the right key in your config files or the reference to the key is wrong
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | nihal |
Solution 2 | Oleg Ushakov |