Category "aws-sam"

sam local start-api go lambda returns 502 "internal server error" on linux ubuntu

While running aws sam application locally returns "Internal server error". I created aws sam hello-world example using:sam init --runtime go1.x --name robertsa

Python is not configured for aws sam cli

I am following this tutorial to build a SAM App: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-hello

How can I download/pull lambda code to a local machine from command line?

I am using the sam deploy command with the AWS SAM command line tool to deploy. Now I made some changes with the web IDE in the AWS Console. How can I pull the

SAM template.yaml from VS Code launch.json?

I'm using an AWS SAM debug configuration in VS Code to execute Lambda code for Typescript/Node 14 inside a Docker container. I've run into problems of dependenc

How to set environment variables according to stage in cloud formation template

The environment variables in the lambda handler has to be set via lambda handler according to the stage. The values for schema, endpoint are different for diffe

Defining URL Query String Parameters in AWS::Serverless::Api SAM template

How do I define and validate URL Query String Parameters for an AWS::Serverless::Api in a SAM template? They don't seem to be mentioned in the documentation htt

AWS SAM - How can create an API event for a FunctionAlias?

My SAM template is currently using a Lambda function to provide information through an API Gateway. However, I would like to have the API Gateway pointing to an

aws sam build not able to build packages which require paramiko due to "Error: PythonPipBuilder:ResolveDependencies"

I've been learning the ropes with AWS SAM and have successfully deployed a number of lambdas together with dependencies and other AWS services. However, I seem

Why my cloudformation template is over 1 MB?

I created a SAM project and created a simple hello world lambda. After executing: sam package --template-file template.yaml --output-template-file output.yaml