I have a CICD pipeline from a bitbucket repository to a AWS lambda - after push my code gets updated into the lambda in about a minute. Waiting this one minute to fix a small bug, rebuild and push is annoying - but I don't want to get rid off the pipeline.
I can run the buildspec.yaml locally but how should I invoke the built functions. I came up with two ideas:
- Localstack
- AWS SAM There could also be a third option - which I don't want because it reinvents the wheel
- define the lambda event manually and run the my-lambda-code.js manually ()
Regarding 1. self explanatory, I would run my entire CDK project inside localstack and push to the bitbucket repository and expect a slight performance boost. As for 2. how should the workflow look like? I really do want the infrastructure to a be a seperate repository from the codebase of the lambda.
Do you think adding a local deployment in a complex AWS app is essential or overcomplicating.