Skip to content

Receive your Replicate webhook events through a websocket connection, right in your browser or Node.js code!

Notifications You must be signed in to change notification settings

aurdalgroup/rwp-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Replicate Webhook Proxy - AWS Infra

A proxy in the middle will receive HTTP webhooks from a running Replicate model and relay them via Websockets to the client application.

How it works.

How to deploy

Install Serverless Framework and create an AWS account. Setup a new profile in ~/.aws/credentials for a service role with administrative access. Change the profile in services/ws/serverless.yml and services/webhook/serverless.yml to match the profile name in ~/.aws/credentials.

  1. Install dependencies:
npm install
  1. Deploy the ws CloudFormation stack:
cd services/ws
sls deploy --stage prod
  1. Deploy the webhook CloudFormation stack:
cd services/webhook
sls deploy --stage prod

About

Receive your Replicate webhook events through a websocket connection, right in your browser or Node.js code!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published