Skip to content

Is @requires_docker absolutely neccessary? Can we mock lambda without docker? #6985

Answered by bblommers
rishacha asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rishacha, this is now fixed in the upcoming v5 release.

All service-specific decorators are be replaced with a single @mock_aws decorator. To use the simple Lambda implementation everywhere, you can specify this in the configuration:

@mock_aws(config={"lambda": {"use_docker": False}})
def test():
    ...

See the full release announcement here: #7198

(Edited to clarify that V5 is now released).

Replies: 2 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by bblommers
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