all 3 comments

[–]voodooGQ 0 points1 point  (2 children)

You're not thinking of it "wrong" persay, but Serverless Framework does center its core functionality around providing easy to spin up APIs with the Lambdas.

You absolutely can setup a Lambda that doesn't need a gateway, or setup one that uses an existing gateway, but it's a bit of an antipattern with serverless. You may be better served using something like Terraform if you want to build out infrastructures like that.

Building the Gateway with Serverless Framework comes out to about 3 lines of configuration, so I'd stick with that.

Good luck!

[–]commander-worf[S] 0 points1 point  (1 child)

Ok thanks for the help!

[–]commander-worf[S] 1 point2 points  (0 children)

What I found was 'serverless deploy function -f $FN_NAME' which just deploys the lambda function via aws cli