Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mini gateway inside a lambda #16

Open
josersleal opened this issue Sep 23, 2021 · 1 comment
Open

mini gateway inside a lambda #16

josersleal opened this issue Sep 23, 2021 · 1 comment

Comments

@josersleal
Copy link

Hello

I read the blog, thank you.
I dont understand the entrypoint lambda thingy.

How is that scalable when he number of APIs/lambdas to call increases. Its an if statement after all.

kindly explain.

@twocoins-ca
Copy link

Do you get the npx cdk deploy working?

[ec2-user@ip-10-x-x-x reactshoppe-api]$ npx lerna bootstrap
lerna notice cli v3.22.1
lerna info Bootstrapping 4 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna success Bootstrapped 4 packages
[ec2-user@ip-10-x-x-x reactshoppe-api]$ npx cdk deploy
Error: Cannot find module '/home/ec2-user/samples/reactshoppe-api/packages/stack/node_modules/reactshoppe-database/reactshoppe-database.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:402:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:644:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1012:27)
at Function.Module._load (node:internal/modules/cjs/loader:872:27)
at Module.require (node:internal/modules/cjs/loader:1092:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/home/ec2-user/samples/reactshoppe-api/packages/stack/reactshoppe-api-stack.ts:2:1)
at Module._compile (node:internal/modules/cjs/loader:1205:14)
at Module.m._compile (/home/ec2-user/samples/reactshoppe-api/node_modules/ts-node/src/index.ts:858:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1259:10)
Subprocess exited with error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants