AWS SDK Error Cloud find API configuration on lambda-2015-03-31

We are using the serverless-layer plugin to deploy the AWS lambda for websocket using the serverless. But suddenly it fails to deploy with the error AWS SDK Error Cloud find API configuration on lambda-2015-03-31