Questions tagged with AWS Serverless Application Model (SAM)
Content language: English
Select up to 5 tags to filter
Sort by most recent
Browse through the questions and answers listed below or filter and sort to narrow down your results.
I have been working through deploying lambda functions using the SAM CLI. Everything works on my end for local testing.
"sam local invoke -e src/events/event.json"
Works fine. I use "sam build" as...
0
answers
0
votes
125
views
asked 8 months agolg...
I've written nodejs18.x SAM app that has 12 lambdas, at endpoints on a REST ApiGateway. I'm optimizing the code and I've moved common code and node-modules into layers. I was looking at the...
2
answers
0
votes
290
views
asked 8 months agolg...
Hi everyone,
What I have is a sam 1.97.0 that is used for the lambda code. Build and validate (as command) run correctly, but deploy or sync fail with the exception. Can anybody elaborate on the...
1
answers
0
votes
576
views
asked 8 months agolg...
I have tried to override environment variables, but when deploying it still cannot override the default values in the template file.
Please let me know where I might be configuring it incorrectly,...
2
answers
0
votes
302
views
asked 8 months agolg...
I have built serverless architecture for wordpress (reference: https://keita.blog/2019/06/27/serverless-wordpress-on-aws-lambda/ ) and created custom runtime for wordpress (reference:...
0
answers
0
votes
100
views
asked 8 months agolg...
I am trying to use AWS API Gateway in my local development but I only found a document which says how to api gateway locally using SAM CLI. But it did not mention anything about how to configure other...
1
answers
0
votes
633
views
asked 8 months agolg...
I have built serverless architecture for wordpress (reference: [https://keita.blog/2019/06/27/serverless-wordpress-on-aws-lambda/]() ) and created custom runtime for wordpress (reference:...
0
answers
0
votes
117
views
asked 8 months agolg...
I have golang lambda functions deployed via aws sam. I followed the guide for compiling for the provided.al2 runtime, yet I am getting the following error:
Error: fork/exec /var/task/bootstrap: exec...
1
answers
0
votes
947
views
asked 9 months agolg...
My requirement is to deploy serverless wordpress and I have came through concept of lambda web adapter which is for response streaming between lambda and web application. For...
3
answers
0
votes
1836
views
asked 9 months agolg...
Here is the part of my AWS Lambda (packaged as a container) related to initialization:
```py
import json
import subprocess
import time
def ms_now():
return int(time.time_ns() / 1000000)
class...
0
answers
0
votes
48
views
asked 9 months agolg...
My AWS Lambda measures the time (in milliseconds) of copying two ML models from `/var/task` to `/tmp` and initializing these models during the cold start. Here is the relevant code (i.e. the code the...
1
answers
0
votes
265
views
asked 9 months agolg...
To speed up cold starts of my AWS Lambda function, I tried to include the HuggingFace transformer model that the function uses into the container by writing the following in the Dockerfile:
```
ENV...
2
answers
0
votes
930
views
asked 9 months agolg...