Serverless deployment error - AppleIdentityProvider - Provided private key cannot be used - amazon-cognito

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.

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

This is resolved.
the right key reference was missing in one of the yaml files.

Related

Bigquery to Redshift data transfer using AWS SCT failing?

I am trying to migrate data from Bigquery to Redshift using this article. I followed through and successfully got till "Start the Local Data Migration Task".I had to setup AWS profile to access "Data Migration View(Other)". AWS profile was setup using access key and access secret of an admin user account in AWS.
What am I missing ?However, upon starting the task I keep getting following error:
class com.amazon.dmt.model.FileCredentials cannot be cast to class com.amazon.dmt.model.UserCredentials (com.amazon.dmt.model.FileCredentials and com.amazon.dmt.model.UserCredentials are in unnamed module of loader 'app')
I tried to check AWS documentation and looked around but this error is not listed anywhere. I cannot seem to understand that, why is type casting from FileCredentials to UserCredentials is being done ?
Anyone faced a similar issue or can point me in right direction please ?
Based on my testing, I have determined that this is an issue in the 1.0.670 version of SCT. A request has been submitted to correct the issue. In the meantime, to allow you to continue with your project, please revert to AWS-SCT version 1.0.666 using this link. https://d211wdu1froga6.cloudfront.net/builds/1.0/666/Windows/aws-schema-conversion-tool-1.0.zip
You will have to uninstall SCT and the extractor agent then reinstall and configure the previous version(s) as you did before.

Validation Error on app upload

I want to deploy my app to the shiny cloud server using Rstudio 3.2.5. When I do I get this error:
Error: HTTP 400 POST https://api.shinyapps.io/v1/applications/ Validation Error
How do I resolve this?
install.packages('rsconnect')
library(rsconnect)
rsconnect::setAccountInfo(name='name', token='token'", secret="secret")
rsconnect::deployApp('C:/Users/path/of/R/app')
or
shinyapps::deployApp("C:\\Users\\path\\of\\R\\app")
This one was bugging me for a while today. Turns out the app name has criteria (these aren't mentioned if you just deploy via the button or command)...
App name needs to be minimum 4 characters with no spaces. Try a new name for the app and see if that works.
I was using more than 4 letter word for my app. But the issue was more due to firewall of my company I guess. I disconnected from VPN and tried deploying using public wireless and it worked.

Big Query | Error: Not Found: Project <project-id>

I'm getting the below error in Big Query Browser Tool.
Error: Not Found: Project
Have verified that, Big Query API is turned ON and billing also enabled.
Please let me know the solution for this.
I had found that this error occurred if (when) cookies were disabled in your browser. Let me know if this resolves this issue. You may also test via other methods, i.e. API, etc... to make sure that your account is actually enabled - Here's the URL - URL to BigQuery API documentation
See BigQuery error in query operation : Project id not found.
It looks like there is an issue with projects that were created via appengine. Let me know if that is the case for your project.

InvocationTargetException:There was an error while invoking the operation. Flash Builder 4.6

I am having issues getting my remote server configured right after everything working properly on the local host. I am getting the following error:
InvocationTargetException:There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.
The key parts of the large message I am getting after that are:
Class "test" does not exist: Plugin by name 'Test' was not found in the registry; used paths::
..../smii/test/ID5D8FE3F-A1D1-4174-98B3-4BED10FD8FFEI79685B66-D792-E4E9-13B3-00004DA5951BI0F94D267-0704-3C89-0B5B-0000090BA097134950398900
I don't know how this last part of the address with random number and letters is getting there.
Also, when searching for my server settings today it seems to add a "-1" on the end of the initial directory on the server not sure why but I seem to be having major issues implementing the service remotely.

Thread: 505.50 when using custom rewrite provider (the one from samples)

I'd like to know how to troubleshoot IIS URL Rewrite module and custom rewrite providers?
I am trying to do a POC on the URL Rewrite Module for our app. Our mappings are all in the database so I thought using the provider that comes as a sample. Got everything installed and configured, as instructed. Created the stored procedure as well. Now when I hit the alias URL I receive HTTP Error 500.50 - URL Rewrite Module Error. Here are the details about the error:
Module RewriteModule
Notification BeginRequest
Handler ExtensionlessUrlHandler-Integrated-4.0
Error Code 0x80070585
In SQL Profiler I see no calls to my stored procedure. The app pool is running under my account (admin rights). No errors in the event logs.
Are there any logs I could look into for more information on what's happening?
I got it working after two days of digging. The samples are good but not good enough: simply using supplied DLLs with supplied config entries doesn't work (for many reasons).
What I ended up doing was getting rid of the DLLs from samples and creating my own provider using the source code from samples and information from this article: Developing a Custom Rewrite Provider for URL Rewrite Module. Then IIS started loading my provider. But in order to make it work correctly I had to get deep understanding of module's config system.
So my answer to my own question -- don't relay on samples alone, they don't work out of the box. Instead, RTFM :) The best place to start is here: URL Rewrite Module Configuration Reference