aws-sam-cli Questions

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

4

Update on Dec 2020 The AWS github issue is Provide linux installation without homebrew #1424. Please monitor the update in the github issue for the latest status. AWS finally decided to provide non...
Handset asked 17/3, 2020 at 8:39

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

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

1

I'm working to get a static website to call API gateway using CORS. I've got the code below running using SAM local, but I'm getting the following CORS error trying to call my API with jQuery from ...
Gertiegertrud asked 5/7, 2018 at 17:36

1

Solved

In cloudformation, AWS::ApiGateway::Method has a boolean property ApiKeyRequired . How can i achieve the same in SAM ? I know that we can enable using explicit swagger Configuration. which is like...
Melina asked 22/10, 2018 at 19:2

3

Solved

I am new to AWS and Go and I am trying to execute my Lambda function via AWS SAM CLI. But every time I try to do so I get the following error: I0517 07:51:11.052078 13 main.go:62] Thumbnail Lambda...
Propagation asked 17/5, 2019 at 8:7

1

Solved

I'm looking at running some of our AWS lambdas locally via SAM, including a one that writes to an S3 bucket. Is there a way of getting S3 to run locally, or talk to an S3 bucket in the cloud and wr...
Mis asked 7/8, 2019 at 10:35

1

I have a Maven Project which has a module 'AddUser'. This module is basically a sam application. When trying to run the command 'sam build' from the project root path. I am getting the below error...
Hypermetropia asked 14/7, 2019 at 11:27

0

I work in a mono repo where I have a AWS SAM (lambda) application. The structure is more or less like so: . ├── my_folder1   ├── file1.py   ├── __init__.py    └── file2.py    ├── my_folder2   ...

2

I'm having an AWS SAM template file with some resources hosted on github, a codepipeline has been setted up to detect changes in the repo then create/update and execute changes on cloudformation st...

2

Solved

I know how to invoke lambda functions that I've named and already exist as Lambda Functions but how can I have a FunctionA invoke FunctionB that I'm defining in AWS SAM template together, and won't...

4

Using AWS SAM Local I can test my serverless application locally, which is awesome. I can also deploy to AWS, which apparently takes the same flags as aws cloudformation deploy, so I can pass a pa...
Disconnect asked 13/3, 2018 at 22:2

1

I have a new project that requires a relatively small amount of services, maybe 10 or less (and therefore it is not economical to place each in a separate project repository). Each service will be ...
Jayjaycee asked 15/7, 2018 at 23:52

2

Solved

When using the AWS SAM CLI to build a serverless application, it located dependencies magically and installs them all as the "build" step. For example, using a NodeJS application: $> sam build ...
Etherify asked 11/2, 2020 at 18:59

1

I am working on a project using AWS SAM local. I am invoking a function with sam local invoke which successfully executes the function. The lambda function writes an image file into /tmp/image.png ...
Gegenschein asked 9/10, 2019 at 6:55

2

Solved

I'm not fully grasping the flow with publishing/deploying with sam. My biggest hiccup is that my sam template declares a AWS::Serverless::Function and the CodeUri parameter forces me to put in a s3...
Crud asked 6/1, 2019 at 20:21

2

I'm working on a project using AWS Lambda with Node.js. We use Docker containers for our development environment. Our current setup spins up AWS SAM local on port :3000. It runs start-api and moun...

1

Solved

I am using AWS SAM to deploy my lambda and api gateway. Below is my template yaml file: AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: > sam-app Sa...

1

Solved

When setting the debug configurations for the default IntelliJ IDEA Java helloworld application (created upon making a new AWS Lambda project) the following response is shown: Error: Cannot find...
Ethiopic asked 8/4, 2019 at 15:35

0

I'm using the sam cli to build and deploy AWS Lambdas: The sam build command iterates through the functions in your application, looks for a manifest file (such as requirements.txt) that contains ...
Anglice asked 8/4, 2019 at 18:42

0

I have the follwing folder structure src -- foo --lambda1.py -- blah --lambda2.py -- util --util.py Now i would to create to include util.py in both the lambda functions code uri using the te...
Kohinoor asked 19/12, 2018 at 8:28

1

Hi i have a sam application which one lambda function and can be invoked from rest endpoint which is working as expected but when i try to test the sam application locally using sam local start-lam...
Angelo asked 5/12, 2018 at 8:15

1

Solved

I'm using SAM to deploy a Lambda function and make it callable over HTTP with via API Gateway using roughly this template snipplet: MyFunction: Type: AWS::Serverless::Function Properties: … Ev...
Idelia asked 10/1, 2018 at 21:48

1

Solved

Still waiting for actual AWS support for this: https://github.com/aws-samples/aws-serverless-samfarm/issues/5 How is this supposed to work? My use case is I have an API Gateway fronted lambda that ...

© 2022 - 2024 — McMap. All rights reserved.