Skip to content

Very small CDK example showing AWS API Gateway -> Lambda -> EventBridge -> Lambda

Notifications You must be signed in to change notification settings

peavers-archive/cdk-api-gateway-example

Repository files navigation

API Gateway -> Lambda -> EventBridge -> Lambda

A simple CDK typescript template/test project for a basic flow.

Run

npm i && cdk deploy

Copy the endpoint url from the result of the above command and make a POST request to https://<YOUR_ENDPOINT>. amazonaws.com/prod/producer with JSON content body.

Example:

curl --location --request POST 'https://qdje2uugu6.execute-api.eu-west-1.amazonaws.com/prod/producer' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "Hello world"
}'

Cleanup

cdk destroy

About

Very small CDK example showing AWS API Gateway -> Lambda -> EventBridge -> Lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published