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'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
252
views
asked 7 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
536
views
asked 7 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
277
views
asked 7 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
95
views
asked 7 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
581
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
106
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
860
views
asked 8 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
1707
views
asked 8 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
45
views
asked 8 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
250
views
asked 8 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
852
views
asked 8 months agolg...
#### Problem
I upgraded my python environment to python3.10 for my cloud9 ec2 instance. Building a serverless lambda function works using SAM and I can run json events via SAM command line. However....
1
answers
0
votes
493
views
asked 8 months agolg...