Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.76 KB

File metadata and controls

43 lines (36 loc) · 1.76 KB

HTTP API direct integration example

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.

Deployement

From this folder run:

sam deploy -g

Testing

Update the '<url>' with your URL after deployment

SQS

curl --location --request POST '<url>/' \
--header 'Content-Type: application/json' \
--data-raw '{"MessageBody":"This is my message"}'