slashdigital / slash-nodejs-api-boilerplate

Slash NodeJs API Boilerplate
MIT License
0 stars 0 forks source link

🚀 Add Terraform for deploying Lambda and API Gateway #5

Open npsopheak opened 1 year ago

npsopheak commented 1 year ago

Checkout this tutorial: https://learn.hashicorp.com/tutorials/terraform/lambda-api-gateway?in=terraform/aws and https://www.serverless.com/blog/definitive-guide-terraform-serverless/

@sophatvathana-slash TF with Lambda , requires huge amount of config with tf :D that's why maybe we need the generator....

npsopheak commented 1 year ago

version 1.0
organization: slash
project: Cool System

apiGateway:
  id: {}

functions:
  todoModule:
    handler: src/function.handler
    route: /{proxy +} or based on controller
    apiGateway: id{}
  userModule:
    handler: src/function.handler
    route: /{proxy +} or based on controller
    apiGateway: id{}
    middleware: {}
npsopheak commented 1 year ago

Still need to do:

npsopheak commented 1 year ago

We also need to do with Apollo Graphql... https://github.com/slash-venture-pte/slash-nodejs-api-boilerplate/issues/8