Default example of Getting Started not working

The example

mkdir -p /tmp/python/
echo 'def util():' > /tmp/python/
echo '  print("Output from Lambda layer util function")' >> /tmp/python/
(cd /tmp; zip -r python)
awslocal lambda publish-layer-version --layer-name layer1 --zip-file fileb:///tmp/

does not work (tested on Linux and Mac):

(localstack) ➜  localstack git:(master) ✗  bash
updating: python/ (stored 0%)
updating: python/ (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

1 Like

Yes, that issue has been resolved.