AWS SAM .NET Convert RestAPI to HttpAPI - gecko-8/devwiki GitHub Wiki

Up

  1. Open LambdaEntryPoint.cs
  2. Change class LambdaEntryPoint inherits from to Amazon.Lambda.AspNetCoreServer.APIGatewayHttpApiV2ProxyFunction
  3. Open serverless.template
  4. In Events section(s), change all "Api" types to "HttpApi"
  5. Under Outputs, change "ServerlessRestApi" to "ServerlessHttpApi"
  6. Remove "Prod/" from "Fn::Sub" value