Re:Build a 100% Serverless Website with AWS in 7 Easy Steps
by paulmendoza on Thursday October 25, 2018 @11:42AM
(#18301760)
I find most sites can just be setup as an S3 bucket with Cloudfront as the CDN. Any special logic can then be housed in some Lambda expressions behind API gateway. That probably would have prevented this outtage. But I haven’t read the article.
[ Parent
| on HN ]
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps
by cal5k on Thursday October 25, 2018 @11:44AM
(#18301775)
Heck, even CloudFront is super easy to setup and works like a charm.
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps
by nigealj on Thursday October 25, 2018 @11:53AM
(#18301862)
So do you proxy your calls from S3 to a serverless service? And do you handle cross origin calls via CORS? Just curious because I've never used serverless before.
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps
by benmanns on Thursday October 25, 2018 @11:59AM
(#18301927)
You can use JavaScript on the frontend to call a Lambda function that you 100% control (including CORS, etc). You can use this to do things like authentication, authorization, and rate limiting, as well, versus just giving open access to an internal datastore.
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps
by stephengillie on Thursday October 25, 2018 @12:07PM
(#18301975)
CORS can be set on the S3 bucket - wide open is the default setting when you open the CORS properties in the S3 console.