aws-sam Questions

2

Solved

I'm trying to build a Lambda application using AWS SAM CLI command: sam build --template C:/MyProject/template.yaml --build-dir C:/MyProject/.aws-sam/build but I'm getting this error: Build F...
Galvanotropism asked 17/12, 2018 at 12:15

4

Solved

the lambda function size is over 4096 characters, so I can't deploy lambda function as inline codes in cloudformation template. (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-p...

0

I have a simple SAM template in which I am creating an AWS::S3::Bucket: AWSTemplateFormatVersion: 2010-09-09 Transform: AWS::Serverless-2016-10-31 Resources: Bucket: Type: AWS::S3::Bucket Now in...
Bradytelic asked 9/6, 2021 at 12:23

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

2

Solved

Description: I am trying to use sam build with the following requirements but its throwing the error: Pythonpipbuilder: resolve dependencies - list index out of range pyotp ulid-py aws_encryption_...
Brashear asked 6/4, 2021 at 15:33

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

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

1

It seems to be impossible to allow developers to create Lambdas and create or maintain SAM Applications in AWS without essentially having AdministratorAccess policies attached to their developer's ...

3

Solved

I have a lambda configured to be triggered when messages are published to SQS queue. Here is the SAM template for deployment. MyQueue: Type: AWS::SQS::Queue Properties: VisibilityTimeout: 180 ...
Hosmer asked 3/4, 2019 at 8:33

5

I am trying to locally test passing the table name of a DynamoDB table as declared in my CloudFormation template file. From all the documentation I have read, I should be able to reference the the ...
Multistage asked 6/8, 2019 at 3:23

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&quot...
Arlindaarline asked 14/1, 2021 at 18:19

3

Solved

I have a setup where I am using CodeCommit as my repository to store lambda functions and CodePipeline using AWS SAM to deploy and create lambda functions. I would like to deploy the lambda functio...

2

Solved

I want to write my cloud formation yml file in a different file and load them separately. It is easy to do it in the serverless framework but I couldn't figure it out how to do it with SAM. Would y...
Campanulaceous asked 5/3, 2020 at 17:32

1

I want to split my SAM application into multiple parts. I want to create a API ( AWS::Serverless::Api ) in the root stack. I am creating lambda functions in my child stacks, where I want to give ...

1

Solved

I'm trying to test my lambda functions locally using the SAM local CLI. I start the API with this command: sam local start-api --template ./sam-template.yml --host 0.0.0.0 --port 4001 However, eve...
Cuyp asked 22/12, 2020 at 22:25

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

1

I have developed a set of Lambda functions in Golang and trying to deploy these functions and API gateway using SAM. I am creating the executables locally, creating zip file for each of these lamb...
Enculturation asked 11/12, 2019 at 13:8

1

Solved

If I use aws lambda on the cloud, console.log output is routed to cloudwatch. But where does it go if I use sam local start-api? Because I can't find it in cloudwatch
Schaaff asked 16/11, 2020 at 14:42

0

I've used sam package to package my local file to s3. The resulting template looks like this: AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Metadata: AWS:...
Isochronous asked 20/10, 2020 at 14:38

2

I am using SAM (Serverless application model) to test Lambda functions locally that connect to an Aurora RDS instance in the cloud. Using the following command: sam local invoke "lambda function ...
Malliemallin asked 21/2, 2019 at 3:8

2

Solved

I have a directory structure like the following in my serverless application(simplest app to avoid clutter) which I created using AWS SAM with Python 3.8 as the runtime: ├── common │   └── a.py ├─...
Atalie asked 16/1, 2020 at 6:20

2

Solved

After migrating a CloudFormation template to AWS SAM approach, when deploying template created with aws cloudformation package, in CloudFormation I get error Encountered unsupported property Cod...
Nag asked 29/8, 2018 at 10:7

1

I defined a model with JSONschema and set it to the lambda. I could see that the model was added in Request Body like the picture below But I also need to set Request Validator to validate it. T...
Name asked 15/1, 2020 at 2:35

1

I'm having some confusion here and wanted to see if someone can set me straight. I'm using Amplify for a Vue app. It calls API Gateway which calls Lambda and all of this is set up manually but I wa...

4

I am trying to invoke my Lambda function using sam local invoke but find that it cannot connect to my host MySQL. I tried adding --docker-network host but it also cannot connect Traceback (most re...
Kentledge asked 21/7, 2018 at 13:40

© 2022 - 2024 — McMap. All rights reserved.