aws-lambda-dotnet icon indicating copy to clipboard operation
aws-lambda-dotnet copied to clipboard

Deploy Serverless Application to HTTP API

Open genifycom opened this issue 2 years ago • 1 comments

Currently the AWS Publish to Lambda function creates a REST API Gateway resource which makes it difficult to attach the generated Lambda Application to an HTTP API Gateway.

Describe the Feature

Add an API deployment type to the Deployment dialog for Publish AWS Serverless Application to choose the type of API Gateway to deploy to.

This is because the LambdaEntryPoint must determine the type of Gateway event it will receive as per:

    // API Gateway REST API                         -> Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction
    // API Gateway HTTP API payload version 1.0     -> Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction
    // API Gateway HTTP API payload version 2.0     -> Amazon.Lambda.AspNetCoreServer.APIGatewayHttpApiV2ProxyFunction
    // Application Load Balancer                    -> Amazon.Lambda.AspNetCoreServer.ApplicationLoadBalancerFunction

Is your Feature Request related to a problem?

Currently, you must choose Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction in order to test the Lambda function. But this will not allow you to move this function to an HTTP API Gateway.

Proposed Solution

Allow the user to choose which API Gateway type to deploy to.

Describe alternatives you've considered

Because there is a code change required for each API type, there is no easy alternative using the Visual Studio deployment method.

Additional Context

Environment

  • [ ] :wave: I may be able to implement this feature request
  • [ ] :warning: This feature might incur a breaking change

This is a :rocket: Feature Request

genifycom avatar Oct 20 '21 14:10 genifycom

This should probably move/duplicated to https://github.com/aws/aws-toolkit-visual-studio. Needs review with the team.

ashishdhingra avatar Jan 28 '22 17:01 ashishdhingra

This feature request was probably a confusion that Lambda Test tool was missing sample request for HTTP API Gateway. The sample request is now available in the Test tool.

Closing this feature request.

ashishdhingra avatar Apr 07 '23 16:04 ashishdhingra

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Apr 07 '23 16:04 github-actions[bot]