Questions tagged [aws-sam-cli]

AWS SAM Local allows developers to run & debug AWS Lambda code on local machine using Docker. AWS Lamda is a part of Amazon Web Services (AWS).

AWS SAM Local allows developers to run & debug AWS Lambda code on local machine using Docker. AWS Lamda is a part of Amazon Web Services (AWS).

Resources

512 questions
0
votes
1 answer

How to fetch existing lambda function from aws to local system using serverless or any other options?

I am using AWS lambda and for the first couple of weeks I created lambda function using AWS console, but after some time I found Serverless. So I set up Serverless on my local system and now whenever I need to create any lambda function, I use…
bisw
  • 827
  • 9
  • 13
0
votes
1 answer

How do I set a TTL in an AWS SAM template for lambda?

Cloudformation has this feature where you can set a TTL which triggers a command that deletes the stack: https://aws.amazon.com/blogs/devops/scheduling-automatic-deletion-of-application-environments/ Is there a way to do something similar with AWS…
red888
  • 27,709
  • 55
  • 204
  • 392
0
votes
1 answer

Unable to install aws-sam-cli using pip on Windows 10

I'm at my wits end. I'm trying to install aws-sam-cli so that I can test AWS Lambda functions locally. I've followed all the tutorials I can find but I'm stuck. I've installed docker and python 3.7 onto my local machine but when I try to install…
Spike
  • 33
  • 1
  • 7
0
votes
1 answer

How to Install AWS SAM local using python?

I am trying to install AWS SAM local using python 2.7.12. I have followed the AWS doc and followed every step. After successful installation, when I am checking if sam installed or its version using sam --version command then below error is showing…
Ankit Uniyal
  • 424
  • 1
  • 7
  • 20
0
votes
1 answer

Docker/SAM local aws sdk's requests failing with (InvalidSignatureException)

Hi when trying to use aws SDK's inside of a docker container I am getting the following error > (InvalidSignatureException) when calling the PutItem operation: > Signature expired: 20180613T153236Z is now earlier than > 20180614T223818Z…
Ellery
  • 1,356
  • 1
  • 14
  • 22
0
votes
2 answers

SAM CLI for CI/CD other than Cloud Formation

Is it possible to use SAM CLI (or any other tool known to mankind) to deploy a lambda function with defined triggers, memory and timeout limits set, etc. the way SAM CLI is able to do it using Cloud Formation (or even in a better way)? Currently I'm…
st.huber
  • 1,481
  • 2
  • 24
  • 45
0
votes
1 answer

Aws Mobile Hub: separate Front End(s) from Back End

I am still discovering awsmobile and still have to read a lot of doc but what I don't really understand is why awsmobile init generates a awsmobilejs/backend in my React project because: 1) I think FE and BE should NOT be in the same repo. 2) I'll…
Benoît Bouré
  • 1,017
  • 9
  • 18
0
votes
1 answer

Can't find sam binary after installing aws-sam-local with npm

I am trying to install aws-sam-local for Windows 10 using README.md in official GitHub repository. However after npm installation is completed I can't find sam binary. Also in installation directory bin folder looks empty: PS…
Oresztesz
  • 2,294
  • 1
  • 15
  • 26
0
votes
1 answer

Deploying Lambda with Cloud9

Hello here is my project structure: -AppName -Common -common.js //Global module which i'm using in all functions -Func1 -index.js -Func2 -index.js -template.yaml And here is template.yaml…
0
votes
2 answers

Cloudformation template to SAM or serverless?

I want to extend lambCI cloudformation template but am finding myself lost in barley human-readable json/yml it provides. Is it possible to reverse-transform CF template to something else(sam, serverless...), edit it and then transform back?
0
votes
1 answer

AWS sam local possible to acces a local webpage

Is it possible to access the aws api gateway in aws SAM local with a webpage? at the moment I have everything running local (amazon DynamoDB, (aws lambda, aws api gateway with aws sam local)) but I can't access the api's with a ajax call because I…
0
votes
1 answer

How to Deploy and test AWS serverless application (API Gateway) created in .Net Core locally?

I'm new to AWS server less programming. I've created a sample app. Blog(sample available with Visual Studio) using [.Net Core 1.0], now I want to deploy it locally and test it. I've tried AWS SAM Local and LocalStack but I'm confused as there is no…
-1
votes
1 answer

AWS sam build failed due to docker not running in macOS (BUT it is running)

What I'm trying to do To try out the AWS SAM (Serverless Application Model) to deploy ML model. I used their sam machine learning template with PyTorch. This template utilized Docker, which is the root of the problem. Unfortunately, Docker is…
-1
votes
1 answer

AWS SAM build failing NpmExecutionError code 255

After long hours searching for answers, I give up and ask for help, hopefully someone will also benefit from this. Here is the problem, I have a project which uses AWS SAM. When i run sam build it fails with NpmExecutionError and a status code 255.…
-1
votes
1 answer

AWS CLI command not run when executed via npm run command

System specification - node version - v10.15.0 npm version - 6.4.1 aws-cli version - aws-cli/1.16.81 Python/3.6.0 Windows/10 botocore/1.12.71 sam-cli version - SAM CLI, version 0.41.0 Running on a windows machine. So I have a node project, which…
Arnab Roy
  • 619
  • 5
  • 16
1 2 3
34
35