AWS Lambda function upgrade requires me to upgrade to 2.1 to deploy my lambda function changes.
I have done the solution upgrade to dotnet runtime to 2.1 and serverless runtime with dotnetcore2.1
Still, I am getting the issue on serverless deployment
An error occurred: LambdaFunction - The runtime parameter of dotnetcore2.0 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (dotnetcore2.1) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException
It works if we deploy newer serverless service. It causes issue with existing function upgrade.