If you need the features and versatility of dynamic website hosting, don’t despair: it needn’t cost a fortune.
In part one of my website hosting series, I showed you how to use AWS’s S3 to set up and host a very simple and cheap static website. Now I’ll focus on the more complicated question of dynamic website hosting. This will definitely cost us a little more, but we will still work to keep our costs to a minimum. Since WordPress seems to be the most popular package for building dynamic websites, we’ll use that for our deployment example.
Want a dynamic website on AWS? Get yourself a reserved instance.
If you intend to use your dynamic website over the long term, the cheapest option (assuming that Amazon’s free tier is not available or appropriate) is an EC2 reserved instance. This will, as a little research will demonstrate, reduce your costs significantly.
Assuming we’re not anticipating any heavy compute loads, we’ll go with t1.micro as our instance type. Signing up for a reserved instance means paying up front for a three-year instance, but it also means getting it at a rate of only $0.008/hr (according to current prices).
This amounts to $6.03 / month. Which is a pretty reasonable price for a fully hosted WordPress site.
Launch your dynamic website
Important: If you have bought yourself a reserved instance, you need to make sure that when you launch your website you pick the same instance type and same availability zone as your reserved instance.
There are many possible ways to deploy a WordPress website into AWS, but in this particular example, I am going to use CloudFormation which I think is one of the easier options available. To launch using the AWS console, follow these steps:
- Click on CloudFormation.
- Create New Stack.
- Give your stack a name.
- Click “Select a sample Template,” choose “WordPress Blog” and click next.
- Fill in all the necessary information, remembering to choose the same instance type as your reserved instance, if you bought one, and click next.
- Add Name as Key and whatever name you want as value, and click next.
- You should now be at your review screen so check your parameters and options, then click create.
You should now see a status of “CREATE IN PROGRESS” so sit back and wait 5-10 minutes for it to complete.
Once you see “CREATE COMPLETE” you are all done. You can now go to the EC2 Instances dashboard to check for your running instances. You should see your brand new WordPress installation along with its new public DNS address. Point your browser to the address and complete your WordPress installation.
So a simple AWS deployment – whether a static or dynamic website – doesn’t necessarily require all that many resources or a painful price tag. Going the static route with S3 can, for all intents and purposes, cost you nothing. And a dynamic website running WordPress on a reserved instance using CloudFormation, will only cost you about $6 /month.
Of course, throwing in other features like your own domain name or a static IP will obviously raise the price a little bit more, but I believe I’ve demonstrated that AWS can provide a solution to fit at least some use cases. As always, it pays to shop around through the various hosting categories and providers to make sure that you’re getting the deal that’s best for your particular needs. but you should certainly not ignore AWS.
AWS Security: Bastion Host, NAT instances and VPC Peering
Effective security requires close control over your data and resources. Bastion hosts, NAT instances, and VPC peering can help you secure your AWS infrastructure. Welcome to part four of my AWS Security overview. In part three, we looked at network security at the subnet level. This ti...
Top 13 Amazon Virtual Private Cloud (VPC) Best Practices
Amazon Virtual Private Cloud (VPC) brings a host of advantages to the table, including static private IP addresses, Elastic Network Interfaces, secure bastion host setup, DHCP options, Advanced Network Access Control, predictable internal IP ranges, VPN connectivity, movement of interna...
Big Changes to the AWS Certification Exams
With AWS re:Invent 2019 just around the corner, we can expect some early announcements to trickle through with upcoming features and services. However, AWS has just announced some big changes to their certification exams. So what’s changing and what’s new? There is a brand NEW ...
New on Cloud Academy: ITIL® 4, Microsoft 365 Tenant, Jenkins, TOGAF® 9.1, and more
At Cloud Academy, we're always striving to make improvements to our training platform. Based on your feedback, we released some new features to help make it easier for you to continue studying. These new features allow you to: Remove content from “Continue Studying” section Disc...
AWS Security Groups: Instance Level Security
Instance security requires that you fully understand AWS security groups, along with patching responsibility, key pairs, and various tenancy options. As a precursor to this post, you should have a thorough understanding of the AWS Shared Responsibility Model before moving onto discussi...
Cloud Migration Risks & Benefits
If you’re like most businesses, you already have at least one workload running in the cloud. However, that doesn’t mean that cloud migration is right for everyone. While cloud environments are generally scalable, reliable, and highly available, those won’t be the only considerations dri...
Real-Time Application Monitoring with Amazon Kinesis
Amazon Kinesis is a real-time data streaming service that makes it easy to collect, process, and analyze data so you can get quick insights and react as fast as possible to new information. With Amazon Kinesis you can ingest real-time data such as application logs, website clickstre...
Google Cloud Functions vs. AWS Lambda: The Fight for Serverless Cloud Domination
Serverless computing: What is it and why is it important? A quick background The general concept of serverless computing was introduced to the market by Amazon Web Services (AWS) around 2014 with the release of AWS Lambda. As we know, cloud computing has made it possible for users to ...
Google Vision vs. Amazon Rekognition: A Vendor-Neutral Comparison
Google Cloud Vision and Amazon Rekognition offer a broad spectrum of solutions, some of which are comparable in terms of functional details, quality, performance, and costs. This post is a fact-based comparative analysis on Google Vision vs. Amazon Rekognition and will focus on the tech...
New on Cloud Academy: CISSP, AWS, Azure, & DevOps Labs, Python for Beginners, and more…
As Hurricane Dorian intensifies, it looks like Floridians across the entire state might have to hunker down for another big one. If you've gone through a hurricane, you know that preparing for one is no joke. You'll need a survival kit with plenty of water, flashlights, batteries, and n...
Amazon Route 53: Why You Should Consider DNS Migration
What Amazon Route 53 brings to the DNS table Amazon Route 53 is a highly available and scalable Domain Name System (DNS) service offered by AWS. It is named by the TCP or UDP port 53, which is where DNS server requests are addressed. Like any DNS service, Route 53 handles domain regist...
How to Unlock Complimentary Access to Cloud Academy
Are you looking to get trained or certified on AWS, Azure, Google Cloud Platform, DevOps, Cloud Security, Python, Java, or another technical skill? Then you'll want to mark your calendars for August 23, 2019. Starting Friday at 12:00 a.m. PDT (3:00 a.m. EDT), Cloud Academy is offering c...