amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Mocking functions that depends on Lambda Layers

Open rafaelfaria opened this issue 3 years ago • 0 comments

Is this feature request related to a new or existing Amplify category?

No response

Is this related to another service?

cli

Describe the feature you'd like to request

I understand today there is no way to test the lambda layers locally, but the experience of developing lambda functions where you have 25 and all of them depend on layers, it's painful.

I would love to understand if there is anything in the roadmap to help developers to overcome this challenge.

Every time I made a change, I need to push it to the environment to test it, and despite the push takes almost 15 min now. Meaning it's HARD to do any testing and make sure that things won't break.

Describe the solution you'd like

Being able to mock the functions and test it as it would work in the cloud.

Describe alternatives you've considered

As mentioned in the description, in order to test, I actually need to push it to the cloud and hope things work. I have been writing unit tests to try minimise the regression issues and get confidence in order to test.

Additional context

No response

Is this something that you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • [ ] ⚠️ This feature might incur a breaking change

rafaelfaria avatar Aug 07 '22 06:08 rafaelfaria