AWS SAM Lambda Local Testing -- Connecting To Docker Containers

The Problem Link to heading Testing AWS lambdas can be a pain. I ran into a problem recently where I needed to use AWS SAM to locally test a function with external (Dockerized) dependencies, this blog details how I solved that.&#xA;Between ad-hoc solutions, AWS SAM&rsquo;s ability to locally invoke functions, mocking resources using tools like LocalStack or Moto, there&rsquo;s a bit of an…