JetBrains / kotless

Kotlin Serverless Framework
Apache License 2.0
1.15k stars 57 forks source link

Support merging multiple projects in the same API Gateway #45

Open LeoColman opened 4 years ago

LeoColman commented 4 years ago

Let's say I have 2 teams. Team 1 works on HelloWorld project and Team 2 works on HiWorld project.Both the teams define their APIs:

And now I want to deploy both to an API gateway, as we're serving these apis do an external client. I want both to be indexed under api.hi , so

This path is configured in API Gateway as a Custom Domain.

Each API is defined in its own Kotless application, as both teams are doing entire different applications.

I'm not able to do this routing as per API Gateway specification (unless I change how the pathing works). This would be very helpful on using Kotest with a more distributed development

kodart commented 4 years ago

What happens if both teams use the same name and prefix, so that api name is the same? Use different buckets for the data (terraform state and lambda)