hello everyone, has anyone here ever deployed an S...
# typescript
l
hello everyone, has anyone here ever deployed an SSR node application server to AWS using pulumi? What would be the well architected approach? I have some static pages and other that are SSRed since the request context is important to know what to hydrate into the page. I’m using sveltekit btw, currently at Vercel but wanna move out all my infra to aws due to observability and cost monitoring. Thanks in advance!
v
i've never deployed a SSR node app, however depending on the size / complexity of your API, i'd recommend using lambda and apigateway to serve the API/SSR, the static site in S3, S3 costs are very reasonable, sat behind cloudfront to serve cached content globally. using the serverless resources in AWS is always a good idea because they're cheap (depending on usage) and give you scaling OOTB, meaning you don't need to worry about infrastructure running & costs
youd obviously need route53 in the mixer somewhere to route your domain to the cloudfront distribution, alternatively you can host your dns externally and point that at the cloudfront distribution dns name, as this is static once created
here's an example of the static site setup using cloudfront and S3 https://github.com/pulumi/examples/tree/master/aws-ts-static-website