serverless

Managing Connections in an Azure Serverless Function App

Managing Connections in an Azure Serverless Function App Question: Microsoft recommends you maintain a single instance of CosmosClient across your whole application, and I’m trying to achieve this in my Function App (with more than just CosmosClient). However, even when re-using both database & container proxies, I always see a warning that I have hit …

Total answers: 1

Streamlit on AWS: serverless options?

Streamlit on AWS: serverless options? Question: My goal is to deploy a Streamlit application to an AWS Serverless architecture. Streamlit does not appear to function properly without a Docker container, so the architecture would need to support containers. From various tutorials, EC2 is the most popular deployment option for Streamlit, which I have no interest …

Total answers: 1

pipenv No such option: –requirements in latest version

pipenv No such option: –requirements in latest version Question: command: pipenv lock –requirements –keep-outdated output: Usage: pipenv lock [OPTIONS] Try ‘pipenv lock -h’ for help. Error: No such option: –requirements Did you mean –quiet? Any idea how to fix this? Asked By: DilLip_Chowdary || Source Answers: the -r option on pipenv lock command is deprecated …

Total answers: 1

How to trigger a Azure Function with parameters from a POST request

How to trigger a Azure Function with parameters from a POST request Question: I need to send a POST request (with user captured data) to azure function and I would like Azure function to use this as parameters and run. I can see there are many ways to trigger an Azure function in the docoumentation …

Total answers: 3

How to create the dynamodb table using serverless.yml and delete the items of it using python boto3?

How to create the dynamodb table using serverless.yml and delete the items of it using python boto3? Question: I’ve created the dynamodb table using serverless.yml as below: resources: Resources: myTable: Type: AWS::DynamoDB::Table DeletionPolicy: Retain Properties: TableName: myTable AttributeDefinitions: – AttributeName: id AttributeType: S – AttributeName: firstname AttributeType: S – AttributeName: lastname AttributeType: S KeySchema: – …

Total answers: 3

Python Serverless Function Vercel – Next.js

Python Serverless Function Vercel – Next.js Question: I found out that I could use Python to create a serverless function inside a Next.js project. Once deployed to Vercel, it will get converted into a serverless function. I went through the docs and found a simple example that outputs the date: from http.server import BaseHTTPRequestHandler from …

Total answers: 1

Write to Google Cloud Storage from Cloud Function (python)

Write to Google Cloud Storage from Cloud Function (python) Question: I am trying to upload a file to google cloud storage from within a cloud function. I can’t import the cloud storage library into my function, though. Can cloud storage be used from within cloud functions in this manner? Cloud Function from google.cloud import storage …

Total answers: 1

Amazon lambda does not show python logs

Amazon lambda does not show python logs Question: My API(Python) is deployed on Amazon Lambda. The problem is when I request my API I get the internal server error. I can tail the Lambda logs but I don’t see the actual error or stack trace where the code crashed. When I tail the logs I …

Total answers: 5