serverless-appsync-plugin icon indicating copy to clipboard operation
serverless-appsync-plugin copied to clipboard

Converting to a NONE dataSource from a LAMBDA data source results in an error during deployment

Open nthornton2010 opened this issue 3 years ago • 2 comments

When converting to a NONE from a LAMBDA data source, the following error is thrown during deployment.

Data source is still connected to a resolver that uses mapping template bypass. (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException; Request ID: 3d9345df-d1ad-4d18-92e6-ac38e6dbf518; Proxy: null).

In order to get around this, the field the original LAMBDA data source was connected to must be manually deleted from the schema through the AWS console and then the original data source manually deleted from the AWS console. After doing both of these, I'm able to then deploy the NONE data source attached to the field.

nthornton2010 avatar Feb 27 '21 05:02 nthornton2010

This might be related to the other issue I reported: https://github.com/sid88in/serverless-appsync-plugin/issues/393

nthornton2010 avatar Mar 01 '21 15:03 nthornton2010

This may or may not be related to this issue: https://github.com/aws/aws-appsync-community/issues/146

Leaving open since deploying shouldn't error out in this case, but it might be out of the control of this plugin (more research would be needed to find this out).

nthornton2010 avatar Mar 02 '21 03:03 nthornton2010