Serverless Static Wordpress on AWS for $0.01 a day

Serverless Static Wordpress on AWS for $0.01 a day

This is exactly the kind of article I’ve been waiting for (both the short and long versions)! Nice combination of “service when I need it” and “static when I don’t”.

Looking forward to more articles that leverage server less capabilities in creative ways!

The constant stream of announcements and new products is why I’m not really kidding when I idly ponder “I wonder when companies are going to post Cloud Compute Announcement Manager”

That’s all you do. Keep precise up to date reports and data on new announcements and make sure your org knows them and has a precise understanding of what you can do with your cloud compute providers.

I think we’ve all read, had, etc. conversations where you and/or the other person you’re talking to go “Holy shit, I didn’t know feature existed!”

Maybe some automation to shut down and start up the container would take it to the next level.

My question is why do you need WAF when your site is static? Additionally depending on use case pushing your static files generated into git and publish to Cloudflare pages or Netlify are also “free” options.

https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zj6oechff6x86lbjnshd.png

Or, just use a tool designed for the job like Hugo?

maybe people like the Wordpress UI and management process… Hugo and Jekyll (both of which ive used) come with their own tradeoffs.

This is awesome /u/rafaturtle is this your article or just posting one you found ?

Sorry. I was going to add the right attribution. But I liked so much that I wanted to share straight away.

Because for non developers , these tools are not so easy. My site is built like this, but with an ec2 which runs only when I need to create a post. These static page generators you mentioned is not user-friendly enough for me.

oh no dramas, I was just going to give an award if it was yours because its an awesome guide.

This is amazing. Been waiting for something like this for awhile!

I THINK WAF is used here to keep costs low. When considering all the bot/scraping traffic out there, a hit to the firewall would cost much less than the cloudfront/s3 transfer.

For people wanting to replicate, you don’t need to do everything listed on the graph. If you use the plugin mentioned (WP2Static) - S3 + Cloudfront is all that’s really important.

Great post about how to use AWS resources, however if WordPress it the only think you care about then probably use GCP free tier, I’m running multiple super-low-traffic WP sites on a F1-micro instance there without a cost.

This is pretty cool and I think I might use some parts of this. I came up with a similar architecture but way higher costs since I don’t create a static page out of the WordPress site.
I’m not sure about the 0.01$ claim though as there is AWS EFS involved which will be around 0.30$ a gigabyte per month and as I understood the author this efs is not going anywhere even if the container is shut down and the Aurora database does not cost anything.

But Anyways, this is cool and I’ll definitely check it out to see if I can optimize what I’ve build.

This is me :slight_smile: Nice to see it shared to reddit!

Hey, I wrote this module so let me know if you have any questions on its set-up! Really nice to see it have such a strong response so quickly!

The more detailed write-up is here: https://www.techtospeech.com/serverless-static-wordpress-on-aws-the-long-version/

WAF is just an option in the event you really need it. Given this is all configured in Terraform, you wouldn’t be able to add the WAF manually since it’s part of the CloudFront distribution configuration.

But no you really don’t need WAF for a static site unless you have a specific need. It adds to the costs substantially ($8 a month is substantial!) and is definitely not $0.01 a day.

There are a zillion people with existing, substantial Wordpress sites that aren’t going to migrate their content to another CMS manually. But converting it to static on the other hand…