Default example of Getting Started not working

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
1 Like

Hi @zopyx,

Lambda Layer is a pro feature.
I can reproduce the error, when running LocalStack in the community edition.

Do you have the LOCALSTACK_API_KEY set when starting LocalStack?
You can get a free trial license on app.localstack.cloud.

1 Like

Yes, that issue has been resolved.

3 Likes