Recently AWS codebuild webhook supports PULL_REQUEST_MERGED event,which triggers the build every time a pull request is merged.
However we have to enable the merged event in Bitbucket webhook setting if we create a webhook filter group that uses the PULL_REQUEST_MERGED event type.
I am confused what should be the server URL of the AWS code build.
I read many tutorial but most of them are for integration of bitbucket with jenkins, not sure how to configure with AWS.