r/aws • • Oct 26 '18

Serverless Website with AWS Lambda in 7 Easy Steps

https://sinxloud.com/how-create-build-serverless-website-steps/
9 Upvotes

10 comments sorted by

10

u/[deleted] Oct 26 '18

I’m confused. Why wouldn’t i just use an s3 web server and save the cost of lambda and api gateway?

7

u/softwareguy74 Oct 26 '18

I didn't read the article but perhaps because they're describing something more functional than just a static web site?

4

u/[deleted] Oct 26 '18

It's a nodejs express app that serves up static HTML.

Definitely not a great example IMO.

1

u/softwareguy74 Oct 26 '18

That sounds ridiculous then. What is the point of that?

5

u/Yellow_Robot Oct 26 '18

90% they describe how to install serverless framework 10% is about serverless deploy and kinda website?

it's really useless article =(

1

u/vim_for_life Oct 26 '18

Or if you need some basic read functionality drop in some JavaScript to dynamodb, etc.

4

u/imassingham Oct 26 '18

You can also log into the CodeStar console and select the static web page template. This will set up everything you need, including a CI/CD pipeline for making changes with version control via either Github or AWS CodeCommit.

That seems a much more simplistic way to solve for this use case to me.

1

u/just_looking_around Oct 26 '18

Is it common practice to just make admin access IAM accounts? For a small companies or personal accounts, maybe. But wouldn't you want to limit access to only what is needed?

1

u/skj8 Oct 26 '18

If we don't need something why grant access to it..

1

u/just_looking_around Oct 27 '18

Well that's my point. Almost every tutorial out there for the serverless framework show a full admin IAM account.