Questions tagged [aws-sam-cli]
AWS SAM Local allows developers to run & debug AWS Lambda code on local machine using Docker. AWS Lamda is a part of Amazon Web Services (AWS).
aws-sam-cli
534
questions
-1
votes
1
answer
22
views
Deploying a New Lambda Function with AWS CodeBuild and AWS CodeCommit but Lambda function not created
I am trying to deploy an AWS Lambda function using AWS CodeCommit and AWS CodeBuild. The pipeline works well—all are in the right order, and the build is successful—but it doesn't create the Lambda ...
0
votes
0
answers
18
views
The AWS SAM common layer can't find the modules
I have the follow directory structure:
common =>
__init__.py
common.py
customer =>
app.py
template.yaml
My template looks like this:
AWSTemplateFormatVersion: '2010-...
1
vote
0
answers
22
views
AWS SAM build command fails when used with AWS CDK stack (cross-compiled)
I have a simple Go AWS lambda function defined using the AWS CDK. I'm developing on an amd64 mac, but deploying an arm64 lambda. CDK commands all work as expected, and the stack correctly builds the ...
0
votes
0
answers
8
views
How to configure aws-sam template file to grant access in nested routes available on application
first of all sorry by my English, Google's help me =D.
I created a NestJS application that exposes a swagger ui in the / route and 2 other routes (/api/export and /api/export/{exportName}). My ...
1
vote
1
answer
92
views
SAM build can't resolve dependencies for 'onnxruntime'
My problem
Summary
I am trying to implement YOLO on AWS Lambda, and when trying to build a Lambda Layer with ONNX, I get Error: PythonPipBuilder:ResolveDependencies - {onnxruntime==1.18.1(wheel)}.
...
1
vote
0
answers
49
views
How to run AWS SAM Build - Binary validation failed for go?
I'm trying to build aws sam in my local. I'm running into the following issue even though the go is in the PATH. How can I fix it? Thanks in advance!
$ sam build
Building codeuri: path/to/path runtime:...
1
vote
0
answers
104
views
AWS SAM Deploy Failing with "Resource handler returned message: "Access Denied (Service: S3, Status Code: 403, Request ID: N8JK1SK...)"
I'm facing issues while deploying my AWS SAM application. My deployment fails with the following errors:
CREATE_FAILED, AWS::S3::BucketPolicy - "Resource handler returned message: "Access ...
1
vote
0
answers
27
views
Function not found error in spring boot lambda function when execute sam local invoke command
I've a spring boot lambda function which process the SQSEvents. This lambda function is deployed in AWS and its working fine, i am trying to execute the lambda in my local using sam local invoke, I ...
1
vote
1
answer
52
views
When building container in SAM it's getting stuck in building container?
When executing the sam build command, SAM generates a Docker container, but the process extends for 2-3 hours without completion.
However, upon removing snowflake-sqlalchemy from the requirements.txt ...
1
vote
1
answer
60
views
CLI SAM Deploy Fails on SSL Certificate Verification
I'm getting the SSL validation error below when trying to do a SAM deploy of our Lambda (on Windows 11). We are using PaloAlto GlobalProtect as our VPN. When I disable GlobalPotect, it works just fine....
0
votes
0
answers
21
views
Webpack build creates random files in project directory
Can someone suggest how can I stop creating these files while building the project ?
Issue:
After migrating from AWS SDK v2 to v3, When I ran webpack build for my typescript project for testing ...
1
vote
0
answers
111
views
AWS SAM in container times out even after setting SAM_CLI_CONTAINER_CONNECTION_TIMEOUT
I'm attempting to containerize the aws sam cli and have read that rather than have a dind situation which seems tricky, it is better to mount docker that running on the host (osx in my case) via /var/...
0
votes
0
answers
127
views
Underscores in headers AWS API Gateway
I have created an API Gateway using Sam cli. Within the request, I am sending a header named access_token, which the API Gateway removes from the request. It only allows sending the header without an ...
0
votes
0
answers
76
views
Can I use PNPM with AWS SAM
I'm trying to use PNPM with AWS SAM, but there seems to be no documentation on using PNPM. I know when using SLS you can work with YARN but I'm unsure of PNPM with AWS SAM. If anyone can point in the ...
0
votes
0
answers
70
views
AWS SAM deployment issue
AWS SAM deployment process specifically when attempting to upload a Docker image gives an error that Error: Unable to upload artifact signaturedetection:python3.8-v1 referenced by ImageUri parameter ...