claudiajs / claudia

Deploy Node.js projects to AWS Lambda and API Gateway easily

Home Page:https://claudiajs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use --api-module with --deploy-proxy-api

Rulasmur opened this issue · comments

  • Expected behaviour:
    Should be able to use api-module along with deploy-proxy-api

  • What actually happens:

> claudia create --region eu-west-1 --api-module index --deploy-proxy-api --handler index
incompatible arguments: cannot specify handler and api-module at the same time.
> claudia create --region eu-west-1 --api-module index --deploy-proxy-api
deploy-proxy-api requires a handler. please specify with --handler
  • Steps to reproduce the problem:
claudia create --region eu-west-1 --api-module index --deploy-proxy-api

those two options are mutually exclusive, so the error is correct. if you want to use claudia api builder, use --api-module; if you want to just deploy a proxy api and not have claudia set up routes for the api builder, use --deploy-proxy-api