#Remix + AWS CDK

1 messages · Page 1 of 1 (latest)

brittle briar
#

Hey there,

I want to host my Remix app on AWS and saw that the Grunge Stack is configured for that, but I noticed that Architect (the tool to generate the Infrastructure / Lambda functions) creates AWS SAM templates. Is there a way to also create CDK stacks instead?

It seems that https://github.com/remix-run/remix/blob/main/packages/remix-architect/server.ts#L40 creates Lambda handlers, would those be translatable to CDK NodeJsFunction?

Thanks for your help in advance!

GitHub

Build Better Websites. Create modern, resilient user experiences with web fundamentals. - remix/server.ts at main · remix-run/remix

real harbor
#

I don't know if anyone has done it yet, but if not you're probably on your own to do the translation from the generated SAM into CDK equivalents

#

I think arc uses API gateway to route between s3 for static/build files, and the lambda function to run remix, which should be a pretty basic setup

radiant breach
#

Have you tried SST.dev’s RemixSite construct? https://docs.sst.dev/constructs/RemixSite and here’s their launch video https://youtu.be/ZBbRZTTCwvU

Docs for the sst.RemixSite construct in the @serverless-stack/resources package

SST

The RemixSite construct allows you to deploy Remix apps to AWS. In this launch livestream, we'll dive into its details and answer questions from the community.

https://docs.sst.dev/constructs/RemixSite

Chapters

0:00 - Intro
4:34 - Architecture
12:05 - Environment variables
16:26 - Access AWS services
20:03 - Custom domains
26:22 - Deploy ...

▶ Play video
split sable
brittle briar
#

Thanks @radiant breach and @split sable that's exactly what I was looking for 😊