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
5
votes
1 answer

AWS SAM: can we use a already existing api in aws sam template?

I have a lambda function that needs to be triggered via Amazon API Gateway. Is there a way to include an already existing API (created using the AWS console) into AWS SAM template?
A Teja
  • 51
  • 1
  • 2
5
votes
3 answers

PHP Forms-Based Authentication on Windows using Local User Accounts

I'm running PHP, Apache, and Windows. I do not have a domain setup, so I would like my website's forms-based authentication to use the local user accounts database built in to Windows (I think it's called SAM). I know that if Active Directory is…
Martin
  • 5,945
  • 7
  • 50
  • 77
4
votes
0 answers

Create multiple API Gateway stages with different integrations

I'm trying to create a lambda function associate with an API Gateway. A new lambda version for that function will be created whenever new version is deployed, this version will have this ARN arn:lambda_arn:[version]. Also a new API Gateway stage…
Amer Sawan
  • 2,126
  • 1
  • 22
  • 40
4
votes
1 answer

Sam build in intellij: Error: JavaMavenWorkflow:MavenBuild - 'utf-8' codec can't decode byte 0xbb in position 150889: invalid start byte

I am working with an aws serverless architecture with spring boot application. When I some time build the project using sam build in intellij, I am getting the following error. Building codeuri: . runtime: java11 metadata: {} functions:…
4
votes
2 answers

How to pass parameters to sam template with override-parameters with optional parameters

I'd like to create a SAM template.yml containing lambda and several sqs's. I'd like to deploy it with parameters but not populate all the sqs's only some depending on the environment I need to deploy it on. How do I create a template with partial…
aQ123
  • 560
  • 1
  • 8
  • 19
4
votes
4 answers

How to trigger lambda for each item in a huge static dynamodb table

I have a dynamodb table with nearly 200k items. I need to trigger a lambda for each item in it (send each item to lambda as input). I want to perform this for every x hours for all the items in the table. Data in table changes every 5 days or so. Is…
4
votes
1 answer

SAM Lambda: [ERROR] Runtime.ImportModuleError: Unable to import module 'index': No module named 'pg8000'

I've deployed a lambda (python3.7) which uses pg8000 import pg8000 .. def get_connection(): """ Method to establish the connection. """ try: print ("Connecting to database") # Create a low-level client with the…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
3
votes
0 answers

Is it possible to open a https port when running "sam local start-api"

Is it possible to setup sam local start-api to use https when running locally?
3
votes
4 answers

Why is my AWS Lambda function ending before finishing with no timeout message?

I've been using AWS Lambda and testing with SAM local for nearly a year with no major issues. However, I've written a Lambda function which modifies some files with the S3 API. The function ends with a 502: Invalid lambda response received: Lambda…
TRONJon
  • 31
  • 1
  • 4
3
votes
1 answer

.gitlab-ci.yaml throws "Cleaning up file based variables 00:01 ERROR: Job failed: exit code 1" at the end after successfully run the job

When I am trying to commit changes to gitlab for continuous integrations i am facing this error even though all my steps pass successfully, Gitlab CI shows this Cleaning up file based variables 00:01 ERROR: Job failed: exit code 1 I am running 1…
3
votes
1 answer

Resolve secretsmanager when invoking sam template locally

I am trying to invoke a lambda locally with sam local invoke. The function invokes fine but my environment variables for my secrets are not resolving. The secrets resolve as expected when you deploy the function. But I want to avoid my local code…
3
votes
1 answer

aws cloudformation deploy - how to increase wait time

I am having issue with one of my cloudformation sam template. In that template, i have a AWS::CloudFront::Distribution block, that takes more than 10 mins to complete. It seems that the aws cloudformation deploy command just times out everytime its…
3
votes
1 answer

Kotlin recommended way of unregistering a listener with a SAM

So i have an interactor which performs an insert operation with Realm and then notifies that the insertion is completed with a RealChangeListener. It is something like this: fun insertCar(item: Car) { realm.doInTransaction { val…
johnny_crq
  • 4,291
  • 5
  • 39
  • 64
2
votes
0 answers

AWS SAM to use existing event bridge rule to trigger lambda

I am using SAM to create few AWS resources like Lambda. I am using amplify to create S3. I need to create a eventbridge rule to trigger lambda whenever a file is uploaded to S3. But I have 2 issues: I am not able to create eventbridgerule using…
2
votes
1 answer

CloudFormation: Waiter StackCreateComplete failed: Waiter encountered a terminal failure state

I had issues trying to deploy a cloudformation change through the sam deploy command and therefore decided that deleting the stack and recreating it might be the best option. I was however unable to delete the stack since it seems several resources…
Ajit Goel
  • 4,180
  • 7
  • 59
  • 107
1
2
3
12 13