Search code examples
amazon-web-servicesaws-lambdalayeraws-cloud9

AWS Cloud9: Referencing Lambda Layer Locally


I have set-up a Cloud9 environment to develop and test lambda functions. To make the environment "cleaner" I have opted to use lambda layers to specify the function's dependencies. By doing this, I have removed the dependency folders from the environment, but I am now unable to test locally.

For example, I have a lambda layer for Stripe's python library. I am able to write a lambda function in Cloud9 referencing stripe, deploy the function, and successfully test the function remotely. But i am unable to run that function locally, as I get "unable to import stripe"

Is there a way to test a lambda function, that depends on a lambda layer, locally by specifying the layer ARN in Cloud9?


Solution

  • Unfortunately, AWS Cloud9 does not support Lambda layers at the moment.