Skip to content

CDK: how to run and debug locally without SAM? #1352

Answered by kenberkeley
kenberkeley asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @dreamorosi for your incredibly detailed and patient reply, I appreciate it.

Indeed SAM is a good way to run and debug Lambda functions locally. However, with the presence of CDK (my beloved wife) in my project, SAM is like a redundant mistress/ex-wife 😂 Additionally, we expect that the API can run locally (hot reload please) with a single endpoint (like localhost:8080/api) to facilitate development/debugging/writing E2E tests, etc.

Next, the "same packages, file system structure, and environment variables" benefits you mentioned are manageable and provisionable, which I am not too worried about. Finally, in terms of "integration with other AWS services", we have saml2aws to log in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kenberkeley
Comment options

Answer selected by dreamorosi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants