Closed chand1012 closed 3 years ago
Same error!
Update on this?
Hey @chand1012 and @GZaccaroni - I believe you are referring to local testing of the RIC not working and this would be because of a missing Runtime API Server when you're trying to run the function. For local testing scenarios, I'd recommend having a look at the AWS Documentation on Testing Lambda container images locally with the Runtime Interface Emulator.
Does the image run successfully when invoked within Lambda?
Thank you @carlzogh , I solved by adding RIE following that tutorial https://docs.aws.amazon.com/lambda/latest/dg/images-test.html !
Worked for me too!
I am working on testing a custom Lambda Docker image locally. The function works great when its being ran on AWS, but my team and I need local testing and to be able to test the image using CI. Here is the entire error output I am getting.
Here is the Dockerfile.
Here are the commands I am using to build and run the container.
The post I was using for reference on how to do this can be found here. Most of our other lambdas aren't in containers so SAM can be used for testing, but we have a few that need to be tested locally that are containerized. Any help would be appreciated!