aws-sam Questions
4
I'm currently working on AWS serverless lambda function deployment and try to distribute and test with AWS SAM. However, when I followed the AWS SAM hello world template tutorial on official websit...
Correggio asked 24/12, 2020 at 10:21
2
I'm trying to pass multiple capabilities to sam deploy
sam deploy --guided --capabilities "CAPABILITY_IAM CAPABILITY_AUTO_EXPAND"
I have tried different forms of this, essentially encoding the ...
Undo asked 15/4, 2020 at 15:33
2
Why does sam build command display warning "ServerlessRestApi" is a reservered logical ID?
I created the sample app with sam init. When I the run sam build, I get the warning:
Your template contains a resource with logical ID "ServerlessRestApi", which is a reserved logical ID ...
Wame asked 14/3, 2022 at 13:23
2
Solved
I'm using SAM CLI v0.8.1. I'm trying to set environmental variable MY_TABLE_VAR as name of the table in my resources (MyTableResource). However, while running my app locally, the MY_TABLE_VAR is un...
Conventual asked 9/12, 2018 at 22:13
3
Solved
From this answer I understand that SAM is a transform of Cloudformation.
Is there a way to get the transformed Cloudformation template from a SAM template via the console, CLI, or another way?
Glazing asked 6/4, 2020 at 1:50
3
Solved
Description of the problem
I have created a Lambda function with API Gateway in SAM, then deployed it and it was working as expected. In API Gateway I used HttpApi not REST API.
Then, I wanted to a...
Dipteral asked 7/7, 2021 at 8:46
2
Solved
I'm building some serverless apps and trying to use SAM. I've been going through some tutorials and some use sam build, while others use sam package.
What are the differences between these commands...
Glendaglenden asked 23/7, 2020 at 18:49
5
I'm learning how to create lambdas on aws. I'm following this official tutorial.
The commands I run:
sam init (default values for everything, I'm choosing template 8 - webapp backend)
cd sam-app
sa...
Dermatologist asked 20/5, 2021 at 14:19
3
Hi I have my AWS Lambda and I wanted to add a layer to it. I would like to be able to just test single methods of lambda. However many of them use layer logic and because of that it doesn't seem to...
Aliquot asked 15/2, 2019 at 8:44
7
Solved
When I try to deploy my AWS SAM YAML file, it fails saying the !Ref is an unknown tag.
Any ideas to get around this?
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-3...
Spatter asked 25/11, 2018 at 18:1
4
Solved
I am using sam deploy to deploy lambda function and API gateway. It works fine but it doesn't work after I manually deleted the lambda function via AWS console. I got below error:
"ResourceStatusR...
Lipson asked 16/5, 2019 at 0:46
3
I am following this tutorial to build a SAM App: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-hello-world.html
When i did sam build, I g...
Jobbery asked 19/12, 2020 at 2:56
4
Working through a deployment on a stack using AWS SAM and deploying via GitHub actions and was trying to use the Config TOML file and specifying a config environment in the deploy command and I am ...
Luik asked 22/12, 2020 at 13:1
6
Solved
I have a Step Function (Parent) created in a SAM/CloudFormation template that, among other things, calls another Step Function (Child). I'm following the instructions on calling Child, from Parent,...
Boondoggle asked 10/3, 2020 at 7:5
1
Solved
I am developping lambda with CloudFormation by SAM
My template.yaml is here.
It can be deployed, however this lambda is not set in VPC.
I want to put the lambda in default VPC (to access RDS)
Any s...
Philippa asked 4/2, 2022 at 14:34
0
When trying to debug simple SAM, I'm receiving the following error:
could not launch process: fork/exec /var/task/hello: function not implemented
Is anyone knows how to solve it?
The full log is:
...
1
Solved
I have created a SAM template with a function in it. After deploying SAM the lambda function gets added and are also displayed while adding lambda function trigger in cognito but when I save it giv...
Anticlockwise asked 15/12, 2021 at 12:41
3
Can a S3 bucket and triggered Lambda be created in separate CloudFormation templates. I want to keep long running resources stack separate from the likes of Lambda which get updated quite frequentl...
Strathspey asked 8/6, 2019 at 3:5
3
I'm facing a problem when trying to deploy my stack via AWS SAM CLI. I'm using the SAM simplified template which I package and deploy.
All I want is to create an SQS queue and implicitly create an...
Haircut asked 30/10, 2018 at 16:56
4
Solved
To secure our API, I'm trying to deploy a WAFRegional with a RateBasedRule. The API Gateway is located in a SAM template wherein I have also a nested stack for the child template holding the WAFReg...
Hair asked 20/6, 2019 at 10:12
3
Solved
In the AWS SAM .yaml template I can declare an inline policy for each lambda function like so:
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
MyFunction:...
Lanettelaney asked 25/10, 2020 at 12:44
1
I have two questions about AWS SAM and deployments.
I’m reading through the docs and checking through examples like this and I’m still not quite sure how to deploy to a staging and production envir...
Virgenvirgie asked 18/8, 2021 at 3:11
2
Solved
The docs say they do exactly the same thing:
Both the sam package and sam deploy commands described in this section
are identical to their AWS CLI equivalent commands aws cloudformation
packag...
Rodrigo asked 12/11, 2019 at 16:50
1
Solved
I am using the default HelloWorld example
My code is:
let response;
exports.lambdaHandler = async (event, context) => {
console.log(event);
try {
response = {
'statusCode': 200,
'body': JSO...
Casillas asked 13/7, 2021 at 16:43
3
Solved
I am trying to create a CloudFormation stack in us-east-2 (Ohio) region. However, getting the following error
com.amazonaws.services.cloudfront.model.InvalidLambdaFunctionAssociationException:
The...
Nero asked 6/5, 2020 at 13:4
© 2022 - 2024 — McMap. All rights reserved.