I’m trying to build an AWS Lambda container (based on a couple of my existing Python functions) to use Tailscale, so I can stop exposing my home automation server directly to the Internet. I’m following the instructions here:
Tailscale on AWS Lambda · Tailscale
Only using the more specific public.ecr.aws/lambda/python:3.9 base image. The resulting container builds fine, but when running it to test tailscaled fails to start with the following error:
safesocket.Listen: listen unix /var/run/tailscale/tailscaled.sock: socket: permission denied
unless I run the container with --privileged, which obviously won’t work on Lambda. I was under the impression that this wouldn’t be needed when tailscale was using user-mode networking?
Any thoughts on how can I get this working?