HOW TO INTEGRATE YOUR AWS EVENT-BASED SYSTEM WITH EXTERNAL/LEGACY SYSTEMS USING RESTFUL API
Read the Blog Post
-
Modify the value of
WebhookSiteURL
in SAM template with your chosen API Destination -
Use AWS SAM to build and deploy to AWS:
-
- Install AWS CLI, and configure it
-
- Install AWS SAM CLI
-
To build and deploy your application for the first time, run the following in your shell:
sam build
sam deploy --guided
For future deploys, you can just run:
sam build && sam deploy
- Injest an event into EventBridge with
aws events put-events --entries file://event.json
, which will save it to DynamoDB, and post it to the APIDestination - Retrieve the event from API Gateway with
curl https://{APIGW}.amazonaws.com/Prod/request/123456789 -H "x-api-key: {APIKEY}"
where you replace the correct values for the APIGW and APIKEY