Skip to content

Instantly share code, notes, and snippets.

@psarna
Created November 10, 2023 12:46
Show Gist options
  • Save psarna/ed090de04b15335eb8851e67bb815e24 to your computer and use it in GitHub Desktop.
Save psarna/ed090de04b15335eb8851e67bb815e24 to your computer and use it in GitHub Desktop.
npm prune --omit=dev
Zip -r nowplaying.zip .
aws lambda create-function --function-name nowplaying --zip-file \
fileb://nowplaying.zip --handler index.handler --runtime nodejs18.x
aws lambda update-function-configuration --function-name nowplaying \
--ephemeral-storage '{"Size": 10240}'
aws lambda update-function-configuration --function-name nowplaying \
--environment "Variables={LIBSQL_SYNC_URL=$YOUR_DB_URL,LIBSQL_AUTH_TOKEN=$(turso db tokens create $YOUR_DB_NAME)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment