Trigger deployment to AWS S3 bucket

Does anyone have any experience or can point me in the direction of docs for handling deployments to an AWS S3 bucket?

I currently have a Gatsby site pulling data in from Prismic and have an npm task that is building and deploying the site to the S3 bucket, but I need some information on how to trigger a build when a page is published in Prismic itself.

I normally use Netlify and I’m finding S3 much more of a challenge to get working in comparison, any help would be massively appreciated.

Thanks