aws-sam-cli Questions

5

Whenever I try to access serverless lambda function via POST through the browser I get the error Response to preflight request doesn't pass access control check: No >'Access-Control-Allow-Origin...

3

Solved

I am building an AWS lambda with aws-sam-cli. In the function, I want to access a certain DynamoDB table. My issue is that the function comes back with this error when I invoke it locally with the ...

5

I am using SAM CLI to develop an API Gateway Lambda proxy integration. According to the docs, I should be able to use sam local start-api to test my endpoint locally. The start-api command allows f...
Backlog asked 15/11, 2021 at 16:12

3

Per the AWS documentation, I am starting SAM local like this: $ sam local start-api -d 5858 I have the following in my launch.json { "version": "0.2.0", "configurations": [ { "name": "Attac...
Bouzoun asked 20/11, 2017 at 22:17

10

I am trying to run an AWS Lambda project locally on Ubuntu. When I run the project with AWS SAM Local it shows me this error: Error: Running AWS SAM projects locally requires Docker. Have you got i...
Harappa asked 11/6, 2018 at 6:8

0

I've a spring boot lambda function which process the SQSEvents. This lambda function is deployed in AWS and its working fine, i am trying to execute the lambda in my local using sam local invoke, I...
Esthonia asked 3/6 at 14:16

7

I am following the readme here: https://github.com/awslabs/aws-sam-local I have a lambda written in python 3.6 and its similar to the helloworld example here : https://github.com/awslabs/aws-sam-l...
Shulamite asked 4/1, 2018 at 22:43

7

Solved

I'm trying to test my hello world lambda function with aws-sam-cli using the following command in my project root folder: sam local start-api --debug This gives me the following output in the co...
Gomer asked 11/7, 2018 at 14:18

2

When I run my lambda code, I get the following error: The ciphertext refers to a customer master key that does not exist, does not exist in this region, or you are not allowed to access. I have ...

3

Solved

I am attempting to follow the Hello World example for deploying an AWS Serverless Application, but I get a Security Constraints Not Satisfied Error when using sam deploy --guided. I'm pressing Ente...
Titrant asked 16/5, 2020 at 17:48

2

Solved

I am trying to programmatically set up stages as part of my AWS API Gateway deployment. I am using SAM CLI. The cloudformation docs give the definition: DeploymentId The ID of the deployment th...

2

I have Docker up and running on my Mac. But "sam local invoke" command results in Error: Running AWS SAM projects locally requires Docker. Have you got it installed and running? Anyone kn...
Kike asked 23/10, 2022 at 18:13

3

Solved

When creating Lambda function through the SAM CLI using template.yaml, I have to pass few environment variables, and they shouldn't be exposed on GitHub. Is there any way I can refer the environmen...
Sherrellsherrer asked 11/3, 2021 at 9:11

2

Solved

I am trying to run a simple lambda function using AWS sam, version(1.57.0) I've installed in my ubuntu system nodejs version 14.18.3 When I try to run the project it gives errorUnsupported Lambda r...
Ashmead asked 20/9, 2022 at 15:7

4

Solved

I'm trying to configure PyCharm in order to run a Lambda Function. First of all in AWS Toolkit I select the SAM CLI executable, and it goes well: Anyway, when I want to add a Lambda run configurat...
Pettit asked 14/10, 2020 at 13:38

3

Solved

I've just gotten started using SAM Local, but am coming up againast an issue when trying to configure an Authorizer function for my endpoints. I've been looking at the main SAM documentation for ...
Perrone asked 23/8, 2019 at 20:16

5

Solved

I am using Win10 latest. After installing AWS-SAM-CLI and testing the installation with: sam --version I get the message bash: sam: command not found however, when I use Powershell, cmd or ConEm...
Lase asked 19/7, 2020 at 22:59

4

Solved

I am working with AWS SAM (Serverless Application Model) to build Python 3.6 lambda code in an API Gateway setup. As such, I have a single template.yaml file that creates several Lambda functions. ...
Salamanca asked 8/4, 2019 at 4:30

6

Solved

With the recent release of Docker Images for Lambda functions, I've decided to try out this functionality using CloudFormation. So, the lambda below considers a docker image stored in Elastic Conta...

1

Solved

I am trying to use the SAM CLI on my M1 Mac. I followed the steps outlined in these docs: sam init cd sam-app sam build sam deploy --guided I did not modify the code or the yaml files. I can start...
Salto asked 24/1, 2023 at 1:0

2

Amazon's SAM CLI does not pick up changes without rebuilding. The documentation SOUNDS like I should not have to start/rebuild/restart every time I make a change to a function. In fact, issuing the...
Beshore asked 19/3, 2021 at 18:2

2

Solved

When trying to deploy to AWS using AWS SAM CLI my Lambda functions using the following script: aws cloudformation deploy --template-file /Users/ndelvalle/Projects/foo/functions/packaged-template.y...
Gert asked 6/9, 2018 at 20:19

1

Solved

PackageType: image seems to require a Dockerfile (looking at the hello-world example) along with ImageUri and Metadata And it also doesn't want me to use Runtime, Handler, Layers (not even using la...

5

Solved

I am trying to create a new AWS Serverless Application on Pycharm but i am getting this error: Could not execute `sam init`!: [Cloning from https://github.com/aws/aws-sam-cli-app-templates (process...
Wheelchair asked 1/7, 2022 at 10:6

1

Solved

Background I have a lambda that is connected to a RDS database. The RDS database and lambda are in a VPC. The db is only accessible to developers via a Bastion instance. During development we can ...
Collincolline asked 4/11, 2022 at 14:53

© 2022 - 2024 — McMap. All rights reserved.