532 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
90
views
AWS SAM - How do I conditionally set CodeUri property for a Lambda function?
I'm working on a AWS Sam Application (repo here) where I want to conditionally set CodeUri to use an S3 bucket 'hot-reload' for running locally on Localstack.
SpringBootLambdaFunction:
Type: AWS:...
0
votes
1
answer
71
views
"Invalid OpenApi document" when publishing SAM app to SAR
I have a test SAM app that I'm trying to publish to AWS SAR. I'm able to deploy it successfully via sam deploy, but when I attempt to publish it, I get an error.
>
Error: Invalid Serverless ...
-1
votes
1
answer
67
views
Can AWS SAM be used to develop and deploy Lambda authorizers?
Lambda authorizers are specialized lambda functions that are sent different input events and return different output than general purpose lambdas.
Because of these differences is SAM still useful for ...
0
votes
1
answer
39
views
AWS SAM Stack Policy
Where do we define the stack policy in a AWS SAM application? For example, if we have a table that should never be allowed to be destroyed due to data retention requirements. In the AWS CLI create-...
0
votes
0
answers
34
views
Partitioned Policy File
We have a corporate policy that all IAM IaC must be approved by the IAM team. For our Terraform solutions we keep the IAM code in a IAM module, and any time that is changed it triggers a review by the ...
0
votes
1
answer
202
views
Local dev quick iteration for serverless lambda using CDK and SAM
Could someone please help out on how they are approaching local dev with CDK and SAM? I'm trying to assist our devs to improve the local development experience and iteration of Lambda code.
Previously ...
0
votes
0
answers
435
views
log4j-slf4j2-impl cannot be present with log4j-to-slf4j (AWS Lambda, Spring-Boot, log4j2)
I'm trying to run a Spring Boot project and aws lambda at the same time.
According to https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/logging-slf4j.html , the following dependency ...
0
votes
0
answers
351
views
Migrating to podman from docker using vscode devcontainer
Getting an error running project using podman on vscode
Project Structure
projectname
|
|----.devcontainer
| |
| |-----devcontainer.json
| |-----docker-compose.yml
| |-----...
0
votes
1
answer
776
views
How to build AWS SAM Lambda with Image deployment on Apple Silicon
(I just filed this bug report but perhaps someone here can answer.)
sam build fails with the sam Hello World Example when building for Image (Docker) deployment for x86_64 architecture on Apple M1 ...
1
vote
0
answers
77
views
SAM Local Api Docker Network Issue
I'm working in a set of lambda funcitions that connects to a Postgres DB.
To do so, I'm using SAM.
My issue comes when I'm trying to connect to my DB. I can connect from my local, but I cannot connect ...
0
votes
1
answer
303
views
403 on Options request within SAM local invoke, but not when deployed?
Why does curl say "missing auth token"? As far as I know I definitely enabled the options method to return a default 200. I definitely have "AuthorizationType": "NONE" in ...
0
votes
0
answers
168
views
Can't build a C# Native AOT Lambda using sam build on Windows
I am trying to get familiar with building and deploying Native AOT C# Lambdas in order to improve our cold starts and to see if we get any additional benefits. I created a hello world project using ...
0
votes
1
answer
239
views
Unable to Deploy with Correct AWS Profile Using SAM CLI - Profile Switching Issues
I'm trying to deploy a Lambda application to different environments (test and prod) using AWS SAM CLI. However, I'm running into issues where the deployment is not using the correct AWS account/...
0
votes
2
answers
842
views
AWS sam build -u gets stuck
I have a Gitlab pipeline that builds and deploys my SAM application. My application contains about 30 lambdas with mostly python and some node. I have never had an issue when I run sam build -u ...
-1
votes
1
answer
172
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 ...