

 This whitepaper is for historical reference only. Some content might be outdated and some links might not be available.

# Simple deployment
<a name="simple-deployment"></a>

 For low-traffic blogs or websites without strict high availability requirements, a simple deployment of a single server might be suitable. This deployment isn’t the most resilient or scalable architecture, but it is the quickest and most economical way to get your website up and running. 

**Topics**
+ [

# Considerations
](considerations.md)
+ [

# Available approaches
](available-approaches.md)
+ [

# Amazon Lightsail
](amazon-lightsail.md)

# Considerations
<a name="considerations"></a>

 This discussion starts with a single web server deployment. There may be occasions when you outgrow it, for example: 
+  The virtual machine that your WordPress website is deployed on is a single point of failure. A problem with this instance causes a loss of service for your website. 
+  Scaling resources to improve performance can only be achieved by “vertical scaling;” that is, by increasing the size of the virtual machine running your WordPress website. 

# Available approaches
<a name="available-approaches"></a>

 AWS has a number of different options for provisioning virtual machines. There are three main ways to host your own WordPress website on AWS: 
+  Amazon Lightsail 
+  Amazon Elastic Compute Cloud (Amazon EC2) 
+  AWS Marketplace 

 [Amazon Lightsail](https://aws.amazon.com/lightsail) is a service that allows you to quickly launch a virtual private server (a Lightsail instance) to host a WordPress website. Lightsail is the easiest way to get started if you don’t need highly configurable instance types or access to advanced networking features. 

 [Amazon EC2](https://aws.amazon.com/ec2/) is a web service that provides resizable compute capacity so you can launch a virtual server within minutes. Amazon EC2 provides more configuration and management options than Lightsail, which is desirable in more advanced architectures. You have administrative access to your EC2 instances and can install any software packages you choose, including WordPress. 

 [AWS Marketplace](https://aws.amazon.com/marketplace) is an online store where you can find, buy, and quickly deploy software that runs on AWS. You can use 1-Click deployment to launch preconfigured WordPress images directly to Amazon EC2 in your own AWS account in just a few minutes. There are a number of Marketplace vendors offering ready-to-run WordPress instances. 

 This whitepaper covers the Lightsail option as the recommended implementation for a single server WordPress website. 

# Amazon Lightsail
<a name="amazon-lightsail"></a>

Lightsail is the easiest way to get started on AWS for developers, small businesses, students, and other users who need a simple virtual private server (VPS) solution. 

The service abstracts many of the more complex elements of infrastructure management away from the user. It is, therefore, an ideal starting point if you have less infrastructure experience, or when you need to focus on running your website and a simplified product is sufficient for your needs. 

With Amazon Lightsail, you can choose Windows or Linux/Unix operating systems and popular web applications, including WordPress, and deploy these with a single click from preconfigured templates. 

As your needs grow, you have the ability to smoothly step outside of the initial boundaries and connect to additional AWS database, object storage, caching, and content distribution services. 

# Selecting an Amazon Lightsail pricing plan
<a name="selecting-an-amazon-lightsail-pricing-plan"></a>

 A [Lightsail plan](https://aws.amazon.com/lightsail/pricing/) defines the monthly cost of the Lightsail resources you use to host your WordPress website. There are a number of plans available to cover a variety of use cases, with varying levels of CPU resource, memory, solid-state drive (SSD) storage, and data transfer. If your website is complex, you may need a larger instance with more resources. You can achieve this by migrating your server to a larger plan [using the web console](https://lightsail.aws.amazon.com/ls/docs/how-to/article/lightsail-how-to-create-instance-from-snapshot) or as described in the [Amazon Lightsail CLI documentation](https://lightsail.aws.amazon.com/ls/docs/how-to/article/lightsail-how-to-create-larger-instance-from-snapshot-using-aws-cli). 

# Installing WordPress
<a name="installing-wordpress"></a>

 Lightsail provides templates for commonly used applications such as WordPress. This template is a great starting point for running your own WordPress website as it comes pre-installed with most of the software you need. You can install additional software or customize the software configuration by using the in-browser terminal or your own SSH client, or via the WordPress administration web interface. 

 Amazon Lightsail has a partnership with GoDaddy Pro Sites product to help WordPress customers easily manage their instances for free. Lightsail WordPress virtual servers are preconfigured and optimized for fast performance and security, making it easy to get your WordPress site up and running in no time. Customers running multiple WordPress instances find it challenging and time-consuming to update, maintain and manage all of their sites. With this integration, you can easily manage your multiple WordPress instances in minutes with only a few clicks. 

 For more information about managing WordPress on Lightsail after you install it, refer to [Getting started using WordPress from your Amazon Lightsail instance](https://lightsail.aws.amazon.com/ls/docs/getting-started/article/getting-started-with-wordpress-and-lightsail). Once you are finished customizing your WordPress website, we recommend taking a snapshot of your instance. 

A [snapshot](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-instance-snapshots-in-amazon-lightsail) is a way to create a backup image of your Lightsail instance. It is a copy of the system disk and also stores the original machine configuration (that is, memory, CPU, disk size, and data transfer rate). Snapshots can be used to revert to a known good configuration after a bad deployment or upgrade. 

This snapshot allows you to recover your server if needed, but also to launch new instances with the same customizations. 

# Recovering from failure
<a name="recovering-from-failure"></a>

A single web server is a single point of failure, so you must ensure that your website data is backed up. The snapshot mechanism described earlier can also be used for this purpose. To recover from failure, you can restore a new instance from your most recent snapshot. To reduce the amount of data that could be lost during a restore, your snapshots must be as recent as possible. 

To minimize the potential for data loss, ensure that snapshots are being taken on a regular basis. You can schedule automatic snapshots of your Lightsail Linux/Unix instances. For steps, refer to [Enabling or disabling automatic snapshots for instances or disks in Amazon Lightsail](https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-configuring-automatic-snapshots). 

AWS recommends that you use a static IP: a fixed, public IP address that is dedicated to your Lightsail account. If you need to replace your instance with another one, you can reassign the static IP to the new instance. In this way, you don’t have to reconfigure any external systems (such as DNS records) to point to a new IP address every time you want to replace your instance. 