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
29
votes
8 answers

Cloudformation Cognito - how to setup App Client Settings, Domain, and Federated Identities via SAM template

I already have my cognito user pool cloudformation template working, and have it integrated to my api gateway. But somehow i still have to manually configure the app client settings, domain, and federated identities to have a working login portal…
Jeff
  • 760
  • 1
  • 12
  • 26
22
votes
3 answers

How to set a stage name in a SAM template

I want to set a stage name for the API Gateway in a SAM template.yaml. But whatever I try I'm not succeeding. Without trying to name my stage, everything works as expected but with the default stage names Prod and Stage. My sam-cli version is…
Eric Dela Cruz
  • 1,503
  • 1
  • 15
  • 20
18
votes
3 answers

AWS SAM Deploy, how to find URL of API Gateway?

How do I find the URL address of the API Gateway after deployment from Command line ? I use a script similar to below to deploy my API Gateway and Authorizer, and it deploys fine.…
user3888307
  • 2,825
  • 5
  • 22
  • 32
14
votes
4 answers

Fix CORS "Response to preflight..." header not present with AWS API gateway and amplify

I've been struggling so long with the error below. I've tried so many tutorials and stackoverflow answers and none of the solutions fixes my problem. Access to XMLHttpRequest at 'https://xxx' from origin 'http://localhost:3000' has been…
12
votes
3 answers

How to add environment variables in template.yaml in a secured way?

When creating Lambda function through the SAM CLI using template.yaml, I have to pass few environment variables, and they shouldn't be exposed on GitHub. Is there any way I can refer the environment variables in template.yaml through the .env…
Nandy
  • 666
  • 1
  • 12
  • 27
11
votes
1 answer

PythonPipBuilder:ResolveDependencies - {numpy==1.20.3(wheel)}

sam build fails with the following error: Error: PythonPipBuilder:ResolveDependencies - {numpy==1.20.3(wheel)} I tried sam build --use-container, but get the same error.
NaSh
  • 665
  • 5
  • 16
10
votes
1 answer

What are the pros/cons using serverless framework vs aws sam?

I'd like to choose a framework for building and deploying AWS services and I need to have a full list of pros/cons to justify one framework over the other. Since this forum doesn't want people to just post opinions please provide references with…
aQ123
  • 560
  • 1
  • 8
  • 19
8
votes
1 answer

How I customize the sam build to pass a ssh and access my private repo on GitHub?

I created a stack of lambda functions and I use the ide pycharm to test them on my localhost. In the requirements.txt file I added a reference to a private repository on github. The repository works and I was able to install it through the…
gmilleo
  • 159
  • 8
8
votes
3 answers

How to deploy SAM stack with localstack?

I've written a SAM stack and I can build, package and deploy it on AWS. I can also use start-local or invoke to test. Now I need to test to other AWS resources. I've added those resources to my SAM template. It works well on AWS but I'm searching…
mealesbia
  • 845
  • 2
  • 12
  • 28
8
votes
1 answer

AWS SAM: An error occurred (ValidationError) when calling the CreateChangeSet operation: Parameters: [IdentityNameParameter] must have values

I want to get started with AWS SAM and I encounter this issue when trying to deploy to the AWS. I am trying to deploy a 'Hello World!'-application that can be found here. This is the error I encounter: $ sam package --s3-bucket dolphin-code…
ledex
  • 97
  • 1
  • 1
  • 7
6
votes
3 answers

SAM build from GitHub actions suddenly failing today: module 'lib' has no attribute 'OpenSSL_add_all_algorithms

Yesterday, my SAM build was working with the below GitHub actions. Today it suddenly started failing with an error: AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' The SAM template doesn't have any error which I have…
6
votes
1 answer

SAM Deployment failed Error- Waiter StackCreateComplete failed: Waiter encountered a terminal failure state

When I try to deploy package on SAM, the very first status comes in cloud formation console is ROLLBACK_IN_PROGRESS after that it gets changed to ROLLBACK_COMPLETE I have tried deleting the stack and trying again, but every time same issue occurs.…
Vikash Yadav
  • 713
  • 1
  • 9
  • 29
6
votes
1 answer

Recommended Project Structure for multi-function SAM Template

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 defined as an AWS::Serverless::Function via SAM…
Kwhitejr
  • 2,206
  • 5
  • 29
  • 49
5
votes
2 answers

AWS SAM - AWS::WAFv2::WebACLAssociation - AWS WAF couldn?t perform the operation because your resource doesn?t exist

We are trying create a AWS::WAFv2::IPSet in our SAM template. WhitelistedIPAddressesIPSet: Type: AWS::WAFv2::IPSet Properties: Description: 'Merchant IPs' Scope: REGIONAL IPAddressVersion: IPV4 Addresses:…
Pontus Espe
  • 51
  • 1
  • 2
5
votes
1 answer

No response from invoke container for FunctionName

Trying to port forward dockerized Lambda to my localhost using command: $ sam local start-api --docker-network host Error every time trying to access Lambda: No response from invoke container for FunctionName Tried also using host.docker.internal &…
MCMatan
  • 8,623
  • 6
  • 46
  • 85
1
2 3
12 13