Questions tagged [serverless-application-model]
61 questions
3
votes
0 answers
AWS SAM Lambda append runtime layer without building runtime (CustomMakeBuilder Exception)
I am deploying an R function on Lambda via a provided runtime, however it fails during the build process.
Steps I did:
Setup the R Runtime via Lambda Layers everything is working perfectly (https://github.com/bakdata/aws-lambda-r-runtime)
Created…

user7055220
- 73
- 1
- 7
3
votes
2 answers
provider.logRetentionInDays not working as expected
I am using serverless framework version 2.11.0
When trying to deploy, it is throwing serverless error:
Configuration error at 'provider.logRetentionInDays': should be equal to one of the allowed values
But it is not showing any allowed values.
Also…

Saurav Dutta
- 157
- 3
- 9
3
votes
2 answers
AWS SAM local start-api cannot resolve Fn::ImportValue
I have SAM template (post here partially):
AWSTemplateFormatVersion: "2010-09-09"
Transform: "AWS::Serverless-2016-10-31"
Parameters:
StorageStackName:
Type: String
Description: Name of the stack which provisions DynamoDB table and S3…

Alexander Matrosov
- 953
- 1
- 11
- 33
3
votes
1 answer
How to specify S3 bucket region SAM template
I'm learning AWS Serverless Application Model. I'm trying the following model:
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
MyLambdaFunction:
Type: 'AWS::Serverless::Function'
Properties:
…

Tom Schreck
- 5,177
- 12
- 68
- 122
3
votes
1 answer
How to define CRUD policy in SAM (Serverless application model) template to more than one table for a lambda functio?
I am using SAM (Serverless application model) and creating policy for lambda function for dynamo. By default AmazonDynamoDBFullAccess is there but I want to give DynamoDBCrudPolicy for lambda function in which more than one table is used.
In aws sam…

amber gautam
- 107
- 2
- 3
- 9
3
votes
1 answer
AWS SAM managed policy for SSM get parameter
Is there any managed policy similar to DynamoDBReadPolicy for the ssm:GetParameter* permission for a Lambda function? I'm using aws-sam-cli and trying to follow this, but when I try to fetch the parameters when using sam local start-api, I get the…

holtc
- 1,780
- 3
- 16
- 35
2
votes
0 answers
How to run an AppSync which has Lambda resolvers (Created using serverless framework) locally?
I am working on a project where I have to use the serverless framework to deploy AppSync with lambda resolvers. My serverless YAML file looks like follows.
service: sls-appsync-backend
plugins:
- serverless-appsync-plugin
-…

Visitha Wijesinghe
- 21
- 1
2
votes
1 answer
AWS SAM with Ansible
Q: Can I use Ansible in order to build/deploy an AWS SAM (Serverless Application Model) template?
If so can anyone post an example of how this Ansible Playbook (e.g. with build/deploy tasks) should look like?
Note:
I've searched the web and haven't…

Mercury
- 7,430
- 3
- 42
- 54
2
votes
1 answer
How to use AWS SAM CLI Local HttpAPI with JWT Bearer token Auth offline?
I would like to use AWS SAM JWT HttpApi Auth offline
Based on this AWS example, I decided to create the following YAML file.
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
HelloWorldFunction:
Type:…

pratikpc
- 432
- 4
- 12
2
votes
1 answer
How to call one lambda from another in AWS SAM
I'm writing application with multiple functions inside SAM application. I can invoke lambda function that is already deployed to AWS with code similar to AWS Lambda call Lambda but it doens't work with local functions. I tried things from…

JLarky
- 9,833
- 5
- 36
- 37
2
votes
3 answers
Which is the best path to take for aws CI/CD workflow? Cloudformation, SAM or Serverless framework?
Need an expert's input who has used cloudformation, sam and serverless framework to deploy nodejs app.
Please advise which is the best path to take I have used serverless framework but not sam or cloudformation, while I agree that it simplifies the…

Khuram Niaz
- 881
- 10
- 16
2
votes
2 answers
How to run a C++ AWS Lambda Function locally with SAM?
I would like to try the custom C++ runtime for AWS Lambda and testing it locally using SAM. Unfortunately I get the error Runtime exited without providing a reason (compare error details below). How can I run C++ Lambda functions locally with…

User12547645
- 6,955
- 3
- 38
- 69
2
votes
3 answers
How to make sure the API Gateway token authorizer is invoked only for specific paths
We have an API Gateway utilising a custom Token authoriser. We have 2 lambdas - Greetings and GenerateToken.
We only want the Greetings lambda to be behind a authoriser - requires to be called in the following way utilising SAM:
curl -X GET \
…

Igor L.
- 3,159
- 7
- 40
- 61
2
votes
1 answer
Best way to add a custom domain to lambda?
I am trying to create a lambda function using SAM, however I can't work out how to add a custom domain to it. Do I need to add a whole ApiGateway to my CloudFormation template just to change the domain or is there is an easier way?
My domain is in…

Karl Green
- 260
- 1
- 4
- 11
1
vote
1 answer
AWS::Serverless::HttpApi OpenAPI definition with http integration
I have the following AWS::Serverless::HttpApi defined:
MyApi:
Type: AWS::Serverless::HttpApi
Properties:
CorsConfiguration:
AllowOrigins:
- http://localhost:3000
- https://localhost:3000
-…

JSON Brody
- 736
- 1
- 4
- 23