The example
mkdir -p /tmp/python/
echo 'def util():' > /tmp/python/testlayer.py
echo ' print("Output from Lambda layer util function")' >> /tmp/python/testlayer.py
(cd /tmp; zip -r testlayer.zip python)
awslocal lambda publish-layer-version --layer-name layer1 --zip-file fileb:///tmp/testlayer.zip
does not work (tested on Linux and Mac):
(localstack) ajung@dev2.zopyx.com ➜ localstack git:(master) ✗ bash test.sh
updating: python/ (stored 0%)
updating: python/testlayer.py (deflated 2%)
An error occurred (404) when calling the PublishLayerVersion operation: <!doctype html>
<html lang=en>
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling