aws-sam-cli Questions
2
I am trying to use aws-sam to develop / simulate my API Gateway locally. My API gateway makes liberal use of the HTTP proxy integrations. The production Resource looks like this:
All of the aws-...
Bacardi asked 12/3, 2019 at 19:15
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
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
4
Solved
I'm developing AWS Lambda function on PyCharm.
When I do "Run" button, Following error message.
/usr/local/bin/sam build MyFunction --template /Users/miyashiiii/Works/myapp/myapp/template...
Compiler asked 7/12, 2020 at 11:20
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
I am trying to do local development setup for serverless architecture. Amazon provide SAM Local Beta for doing so. But in my project we are using mysql database. I am trying to make a connection to...
Royo asked 22/11, 2017 at 17:32
1
I am trying to use a compiled CloudFormation file directly with SAM Local. I cannot find a way to do this, has anyone achieved this successfully?
Warfore asked 17/1, 2018 at 0:5
3
I am getting the following error:
[ERROR] SSLError: SSL validation failed for https://data.iot.ap-northeast-2.amazonaws.com/topics/app%2Ftest%2Fresponse?qos=1 [SSL: CERTIFICATE_VERIFY_FAILED] certi...
Spotted asked 14/12, 2020 at 8:7
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
7
Solved
I've set up an api gateway/aws lambda pair using AWS sam local and confirmed I can call it successfully after running
sam local start-api
I've then added a local dynamodb instance in a docker con...
Hamper asked 22/2, 2018 at 11:25
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
1
I'm building server less applications using AWS SAM
SAM + VSCode + Docker desktop
Everything was working fine, but suddenly I started getting timeout error when I run debug.
Note: sam local invoke ...
Madsen asked 20/5, 2021 at 10:7
6
Solved
I'm developing a Lambda function written in python3.6 to test locally, then deploy to AWS once working. I'm using PyCharm's AWS Serverless Toolkit for this.
SAM build is not building successfully ...
Apeldoorn asked 20/8, 2019 at 8:38
2
I would like to build .NET HTTP API using aws lambdas. These lambdas will be called by UI and some other systems via api gateway. Obviously in local environment I would like to run/debug these.
Wha...
Dip asked 18/4, 2021 at 8:10
1
Solved
I'm trying to include an OpenApi specification into my AWS::Serverless::Api DefinitionBody like so:
MyApi:
Type: "AWS::Serverless::Api"
Properties:
StageName: 'dev'
Domain:
DomainNa...
Pelletier asked 20/4, 2021 at 12:23
3
Following the steps in the AWS documentation
https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local-lambda.html
using aws-stepfuncitons-local docker container
I'm getting a connection r...
Sarraceniaceous asked 28/5, 2019 at 12:49
1
Solved
How does the dockerfile look like for aws lambda with docker image via aws-sam when declaring multiple functions/apps in templates.yaml?
Here is the sample dockerfile to run "a single app"...
Arlindaarline asked 14/1, 2021 at 18:19
3
Solved
We are about to start working with Lambda functions.
We have that technology constraint that we have to use TypeScript.
I want to be able to debug my ts file in VS Code when the related endpoint is...
Admittedly asked 8/12, 2020 at 10:55
4
Solved
I am trying to use the AWS SAM CLI installed through Homebrew and I am seeing the following error when I try to use sam with any command:
dyld: Library not loaded: @executable_path/../.Python
Refe...
Isolationism asked 8/7, 2020 at 19:9
© 2022 - 2024 — McMap. All rights reserved.