aws/aws-lambda-dotnet

Amazon VPC Lattice support for WebAPI

chufty opened this issue · 1 comments

Describe the feature

Support for the Amazon VPC Lattice V2 payload format when creating WebAPI projects. This would allow us to deploy dotnet 8 Lambda functions as a VPC Lattice service that support the ASP.NET application stack in the same way as we can with API Gateway and ALB triggers.

Use Case

VPC Lattice lets us deploy internal microservices as Lambda functions, simplifying east-west communication between services and VPCs. But without official support for the payload format, we have to hand roll the plumbing needed to build these services as WebAPI projects, which many .NET developers are comfortable building.

Proposed Solution

A set of POCO models for the Lattice payload format and a new implementation of AbstractAspNetCoreFunction which supports deserialisation and mapping of these requests.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS .NET SDK and/or Package version used

Amazon.Lambda.AspNetCoreServer.Hosting 1.7.3

Targeted .NET Platform

.NET 8

Operating System and version

Linux, Windows

First we need to add event for VPC lattice and then implement translation for it.

@chufty Feel free to contribute initial PR that demonstrates your use case.