{"id":484,"date":"2023-05-19T17:56:15","date_gmt":"2023-05-19T17:56:15","guid":{"rendered":"http:\/\/localhost\/wordpress\/?p=484"},"modified":"2023-05-19T17:56:16","modified_gmt":"2023-05-19T17:56:16","slug":"how-i-elevated-my-aws-hosted-blog","status":"publish","type":"post","link":"http:\/\/localhost\/wordpress\/2023\/05\/19\/how-i-elevated-my-aws-hosted-blog\/","title":{"rendered":"How I elevated my AWS-hosted blog"},"content":{"rendered":"\n
When I first started out with making a blog the first thing on my mind was to make use of the static webhosting-feature on AWS S3, meaning that we can basically put a index.html file under a root folder and tell S3 to display the content under a URL. The result is quite good once you get used to off-loading any new content in your S3 bucket whenever you want to post any new content.<\/p>\n\n\n\n
Given my inexperience with web development I ended up with a horrible html and css hacking using templates and writing tons of code to produce minor content. You can read more about this experience here.<\/a><\/p>\n\n\n\n I went with WordPress as it is quite a classic by now and used by people of all skills. With all the templates that comes with WordPress you can get a very nice layout with little to none understanding of the customization. All you need to do is post your content and update a few titles or upload media. I ended up finding free templates on Google instead of using one of the boring ones half-free ones that comes by default with WordPress.<\/p>\n\n\n\n When it came to development itself and designing my website I setup a local WordPress on my laptop. First you need to pick a server for your web development that suits you. I went with WAMP but you might as well pick something like a linux-based LAMP. This is the guide I went with to setup WordPress locally using WAMP<\/a>. One that is done you can download and install a WordPress-plugin called “Simply Static” that can generate your static content as a Zipfile that you want to extract and upload to S3.<\/p>\n\n\n\n Once you have everything in your S3-bucket you can share it as public and call it a day. But there are several reasons why you want to take this further.<\/p>\n\n\n\nWeb development tool<\/h3>\n\n\n\n
Register your own domain<\/h3>\n\n\n\n
\n
While hosting your website content on S3 is in itself quite cheap. With a cost of $0.023 per GB \/ Month while also supported by the Free tier-trial period of your first year, I would say this is close to free for your common private website. Thats why this is preferable to using a virtual server with a storage or other third-party solutions outside AWS.<\/li>\n\n\n\n
By making use of CloudFront we can not only cache content to reduce the latency, but we also save money on frequent traffic to our S3 content using consolidated requests. Another great thing about CloudFront is that it will help us out with some security aspects such as traffic encryption.<\/li>\n\n\n\n
And last but not least we will leverage Route53 to register our own domain. This will give it more of a professional look and it will only cost us around 9-14$ \/ Year.<\/li>\n<\/ol>\n\n\n