Questions tagged [serverless-application-model]
61 questions
0
votes
1 answer
Lambda Role doesn't have policies defined in SAM template
After deploying a Lambda through SAM, I was getting a 403 inside the Lambda when attempting to download from S3. I checked the Lambda's Role in IAM Management Console, and I saw that the Role only had AWSLambdaBasicExecutionRole. However, it should…

chillpenguin
- 2,989
- 2
- 15
- 18
0
votes
1 answer
How to create DynamoDB table with autoscaled throughput via AWS SAM template
I am trying to create a AWS SAM. My Lambda does some write operation on DynamoDB table and the table provisioned throughput should be Autoscaled. How can I mention in the template.yml file?
here is my table definition
Resources:
myDB:
Type:…

Crazy Cat
- 186
- 3
- 13
0
votes
1 answer
Difference between CloudFormation stack and Serverless application (published to a repository)
with private applications in mind, I'm struggling to understand the difference between CloudFormation stacks and Serverless Application published to a repository.
I have a SAM template with a couple of functions. I then build, package and deploy it…

HIT_girl
- 785
- 7
- 23
0
votes
1 answer
Why is AWS SAM giving me random DynamoDB table names
When i use SAM to create my Lambda,API gateway and DynamoDB table it all works until i get to the actual created table. It is supposed to be called "List" however after the word "list" it gives me a bunch of random numbers and letters.
What i want…

Fellowmen556
- 69
- 6
0
votes
0 answers
AWS SAM Deployment Configuration Issue
I have set up a simple serverless rest api using Node JS and AWS Lambda.
The deployment is done using AWS SAM
Below is the SAM Template :
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: Serverless API With…

Atul
- 1,560
- 5
- 30
- 75
0
votes
2 answers
AWS SAM VSCode ptvsd debugging not using breakpoints
I'm trying to follow the instructions I found here for debugging a Python SAM application in VS Code
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-debugging-python.html
I'm not sure why they…

Josh Russo
- 3,080
- 2
- 41
- 62
0
votes
0 answers
Serverless long running tasks
Learning new things in node , I have a crude API that takes a http link => downloads the file => uploads it to my private storage. Currently I'm using RabbitMQ , where the API is the publisher and I have a consumer VM always running , waiting for…

Solaris
- 674
- 7
- 22
0
votes
1 answer
Is it possible to retrieve existing resource identifiers within AWS SAM?
I have several services split up where serveral of these services are a lambda + api gateway which I decided to use the Serverless Application Model (SAM) tool that AWS provides so I can make use of local start-api while I am working locally on…

Connormcwood
- 71
- 5
0
votes
1 answer
How do I set file permissions on a file when deploying an AWS Serverless Application with Maven
I want to deploy an AWS lambda function using the AWS Serverless Application Model with Maven. In the lambdas deployment zip file I want to include two external files (file1 and file2) that need to have executable permisions. (chmod 755 /…

Hammerkop
- 31
- 5
0
votes
2 answers
c# aws api gateway serverless.template structure not processing via CloudFormation
I have built a .NET serverless application and have the following serverless.template
{
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Description": "API Gateway to access InSite data-store.",
…

JamesMatson
- 2,522
- 2
- 37
- 86
0
votes
1 answer
AWS enable caching with queryStringParameter PathParameter for SAM API Gateway
I would like to enable caching for API Gateway for my serverless functions, but having hard time to understand where to do it and what way.
I have tried to set up queryStringParameters in my serverless functions but that results in error, also tried…

Szilágyi István
- 171
- 1
- 15
0
votes
1 answer
Configuring AWS::Serverless::Api resources for HTTP_PROXY integration
Using the console, I was able to configure an API gateway method to pass HTTP requests with a path parameter off to a another URI.
The result looks as follows
This would make it so that my request is forwarded to https://example.com with the same…

JSON Brody
- 736
- 1
- 4
- 23
0
votes
1 answer
How to write into a specific CloudWatch group
I have a cloudwatch log group named myTestLogGroup that has a log stream named myTestLogStream.
I also have a lambda named myTestLambda with the following code:
exports.handler = async () => {
console.log('Hello World!');
return 200;
}
I…

Igor L.
- 3,159
- 7
- 40
- 61
0
votes
0 answers
AWS SAM template, cant set KmsKeyArn
Why is this even a problem?
I set up an aws SES (Simple email service) that will encrypt my messages. So in my template I create the ReceiptRule.
ReceiptRule:
Type: "AWS::SES::ReceiptRule"
DependsOn: [ TestEmailBucket ]
Properties:
…

Johan Byrén
- 890
- 2
- 13
- 28
0
votes
2 answers
SAM Node.js hello world app has axios module missing
I am new to both Node.js and SAM.
I am following the AWS Quick Start guide online here, except that I am using Node.js. Specifically, I ran these commands:
Versions:
▶ sam --version
SAM CLI, version 0.10.0
▶ node --version …

Alex Harvey
- 14,494
- 5
- 61
- 97