Working with AWS Lambda Dockerhub


I am trying to get Dockerhub Webook to work with AWS Lambda.

I have created a Dockerhub Webhook pointing to an AWS API gateway url which will end up in a lambda function.

After executing the built, I can see that the webhook process went to pending.

At AWS Lambda I can see the request coming in, so I’ve sent the POST request back to the target_url as suggested, and I got a response 200.

But when I looked at the Webhook process the process status is still on pending.

I went on and executing the POST request again, manually using the same nodejs script ran locally and it went through successfully.

Further findings appears to have shown that I need to actually send the request from lambda twice.

Anyone has any idea on this?