Questions tagged [sam]

Simple Asynchronous Messaging is a PHP framework that provides a very simple API that can be used to access a number of messaging middleware systems from PHP.

This extension provides access to the functionality of messaging and queueing systems, such as the IBM WebSphere MQSeries family of products, from PHP scripts. The interface is designed to make it extremely simple to do the more commonly required tasks such as deliver simple text messages to queues while still allowing skilled users to do more complex messaging operations. For many users the complexities of setting up numerous options can be simply ignored.

The SAM extension is a framework that provides a very simple API that can be used to access a number of messaging middleware systems. Currently the package includes built-in support for the MQTT (MQ Telemetry Transport) messaging protocol and support for the IBM Messaging and Queuing middleware products. SAM is designed to be readily extended to support other messaging systems and extension modules may be written in C or PHP.


Do not use this tag for the sequencing SAM file format.

194 questions
0
votes
0 answers

ModuleNotFoundError: No module named 'sewar.full_ref'; 'sewar' is not a package

I installed Sewar using pip install sewar after that i got same error like below from sewar.full_ref import mse, rmse, psnr, uqi, ssim, ergas, scc, rase, sam, msssim, vifp import cv2 org = cv2.imread("org_path") blur =…
Parthiban Marimuthu
  • 665
  • 1
  • 8
  • 15
0
votes
0 answers

How to Allow AWS Lambda to access RDS Data API in Java SAM offline

I am trying to access my Aurora Serverless DB from an AWS Lambda function I am developing using SAM and Java 8. I have added the appropriate policies to the template.yaml file. When I try to execute the Lambda offline using sam local invoke, I…
Chris
  • 35
  • 1
  • 5
0
votes
1 answer

sam local invoke function timeouts when connecting to dynamodb docker compose

I am trying to connect a local sam app (hello world example) to a dynamodb docker container running with docker compose. When I try to execute the lambda functions locally with python3 everything works perfect, I am able to write and delete data…
0
votes
1 answer

sam build --use-container --debug not working

sam build --use-container is not working, just exit without any logs. I tried with debug still same issue. $ docker --version Docker version 20.10.8, build 3967b7d $ sam --version SAM CLI, version 1.38.0 $ sam build --use-container --debug no logs…
0
votes
0 answers

Facing challenge in testing lambda locally inside docker

I am working inside Docker. I have started the docker-container using below command (from base image of Linux Ubuntu) and have installed all necessary softwares inside the Container like "sudo", "JDK", "maven", "vim", "aws-cli", "sam-cli",…
Aditya Goel
  • 201
  • 1
  • 15
0
votes
1 answer

AWS sam cli local invoke lambda with secrets manager port undefined

I am trying to test my lambda function locally using sam local invoke. Error says UnknownEndpoint: Inaccessible host: secretsmanager.us-east-1.amazonaws.com' at port undefined' This error is being thrown from inside my lambda function code as that…
Jaf
  • 811
  • 2
  • 7
  • 9
0
votes
1 answer

how to fast deploy lambda function?

how to deploy lambda fast in project? Update an existing lambda, we can use sls deploy -f functionName, but add or delete a lambda is so slow,Is there any way to quickly add or delete a lambda function? I hope to add or delete a lambda function into…
Ddd
  • 1
  • 1
0
votes
1 answer

sam local invoke timeout on newly created project (created via sam init)

I create a new project via sam init and I select the options: 1 - AWS Quick Start Templates 1 - nodejs14.x 8 - Quick Start: Web Backend Then from inside the project root, I run sam local invoke -e ./events/event-get-all-items.json…
Caius Cosades
  • 33
  • 1
  • 9
0
votes
1 answer

AWS lambda function does not find the main app when running a local sam invoke command. How do I make sam invoke find the app.py application?

The command which fails is: /usr/local/bin/sam local invoke HelloWorldFunction --template /home/peter/Dropbox2/Dropbox/clothes_recco/production/bodyestimate/.aws-sam/build/template.yaml --event "/tmp/[Local] BodyEstimate-event109.json" and it…
Peter Dimmar
  • 121
  • 1
  • 4
0
votes
1 answer

VS Code & AWS SAM local invoke issue

I have a serverless project on VS Code, Docker desktop 4.10 installed and I don't know why last Friday everything working fine, since Monday I got strange errors and I cant figure out. I tried to update AWS CLI, Docker, VS code and its extensions,…
0
votes
1 answer

AWS Lambda Function does not get credentials from ENV variables (invalid security token)

I have a small lambda function written in Ruby that works on AWS but shows ERROR: The security token included in the request is invalid locally. The purpose of this function is to read something from DynamoDB table. Here are the important parts of…
Maciej Dobosz
  • 148
  • 1
  • 12
0
votes
1 answer

AWS Lambda Container deployment without SAM

Is this possible to deploy AWS Lambda Containers without using SAM. Every article I found on internet is suggesting to use SAM to deploy. As SAM is a wrapper on AWS cloud formation I want to use only cloud formation YAML to deploy lambda containers.
0
votes
0 answers

Integrating vulnerability scan in AWS Code Pipeline

enter image description hereWe have 2 piplines one for building and deploying sam application and other for react application. How to integrate a new stage in that pipeline which can scan the build package for vulnerabilities and provide a report.…
0
votes
1 answer

How to know that which attributes are returned while creating an aws resource from aws sam template

For example AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Description: > sam stack Resources: MyLambdaFunction: Type: AWS::Serverless::Function Properties: CodeUri:…
0
votes
1 answer

AWS Lambda function: Timeout after 900 secs

I am invoking an AWS Lambda function locally using aws-sam cli command and I have set the Timeout property to 900 seconds but still it shows function timeout error. However, when I was invoking this function in lambda handler in AWS Console these…
Hasan Khan
  • 17
  • 1
  • 10