4 ms·
Layers sounds like a great solution to sharing code/libraries. If anyone at AWS is here, will there be a way to pull them down for local testing? At the minute
by mcintyre1994 8y ago
Layers sounds like a great solution to sharing code/libraries. If anyone at AWS is here, will there be a way to pull them down for local testing? At the minute it's trivial because you're forced to pull all your dependencies into a single place you can zip them, and you can test them at that point - but will you still have to do that if you want to test locally with layers?
- gloomfilter 8y agoseems you can get the link to the layer by calling GetLayerVersion: https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersion.html https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVer...
- mcintyre1994 8y agoI'm not sure why this was downvoted/dead, but thankyou - it looks like this would be enough since it gives a link to download the layer and a hash to check it against.
- munns 8y agohi! yes there will be support in SAM CLI that when you do local testing referring against a Layer it will pull it down for you. - Chris, Serverless @ AWS
- mcintyre1994 8y agoThanks Chris! Sounds like it's probably time I learn the SAM CLI :)
- jacques_chester 8y agoHi Chris -- it would be interesting to compare notes on Cloud Native Buildpacks, which seems to have overlapping mission with Lambda Layers. Could you come find us at https://slack.buildpacks.io https://slack.buildpacks.io ?