# Amazon API Gateway HTTP API to Amazon EventBridge This pattern creates an HTTP API endpoint that directly integrates with Amazon EventBridge ## How it works This pattern creates an Amazon API gateway HTTP API endpoint. The endpoint uses service integrations to directly connect to Amazon EventBridge. An EventBridge rule sends all events to Cloudwatch Logs. ## Deploy Run `cdk deploy`. This will deploy / redeploy your Stack to your AWS Account. ## Testing To test your endpoint first send data using the following command. `` will be logged at end of the deployment during `cdk deploy`. ``` curl --location --request POST '' --header 'Content-Type: application/json' \ --data-raw '{ "Detail":{ "message": "This is my test" } }' ``` Then check the logs in Cloudwatch logs. ## Synthesize Cloudformation Template To see the Cloudformation template generated by the CDK, run `cdk synth`, then check the output file in the "cdk.out" directory.