Blog post: Building storage-first serverless applications with HTTP APIs service integrations
This template demonstrates using the new HTTP APIs direct integration to an Amazon SQS queue. The following resources are built:
- SQS Queue
- HTTP API
- IAM Role for HTTP API
- A Lambda function for testing.
The api.yaml file contains the OpenAPI definition for the direct integration.
From this folder run:
sam deploy -g
Update the '<url>' with your URL after deployment
curl --location --request POST '<url>/sqs' \
--header 'Content-Type: application/json' \
--data-raw '{"MessageBody":"This is my message"}'