Amazon Lightsail is an easy-to-use cloud platform that provides developers compute, storage, and networking capacity and capabilities to deploy and manage websites, web applications, and databases in the cloud. Lightsail includes everything customers need to launch their project quickly – a virtual machine, a managed database, SSD-based storage, data transfer, DNS management, and a static IP.
- AWS Lightsail scales out applications or websites over time and improves its availability and redundancy by adding other Lightsail resources, like load balancers, attached block storage and managed databases.
- Amazon Lightsailis ideal for simpler workloads, quick deployments, and getting started on AWS. It’s designed to start small, and then scale to grow. As their project grows, customers can use load balancers and attached block storage with their instance to increase redundancy and uptime and access dozens of other AWS services to add new capabilities.
- Customers can create preconfigured virtual private instances that include everything to easily deploy and manage your application, or create databases for which the security and health of the underlying infrastructure and operating system is managed by Lightsail.
- Using Amazon Lightsail AWS customers can run websites, web applications, business software, blogs, e-commerce sites, and more.
Amazon Lightsail FeaturesLightsail offers virtual instances that are easy to set up and backed by the power and reliability of AWS.
Amazon Lightsail enables customers click-to-launch a simple operating system (OS), a pre-configured application, or development stack – such as WordPress, Windows, Plesk, LAMP, Nginx, and more.
Amazon Lightsail managed databases enable customers to scale their databases independently of their virtual servers, that improve the availability of their applications, or run standalone databases in the cloud.
- Customers can deploy multi-tiered applications, all within Lightsail, by creating multiple instances that are connected to a central managed database, and a load balancer that directs traffic to the instances.
- Amazon Lightsail managed database plans bundle together memory, processing, storage, and transfer allowance into a single, predictable monthly price.
Lightsail’s simplified load balancing routes web traffic across instances so that customers websites and applications can accommodate variations in traffic, be better protected from outages, and deliver a seamless experience to their visitors.
- Lightsail load balancers include integrated certificate management, providing free SSL/TLS certificates that can be provisioned and added to a load balancer in just a few clicks.
- Customers can request and manage certificates directly from the Lightsail console – and AWS manage renewals on their behalf.
Amazon Lightsail uses a focused set of features like instances, managed databases and load balancers to make it easier to get started.
- Customers can integrate their Amazon Lightsail project with some of the 90+ other services in AWS through Amazon VPC peering.
- Customers are able to manage the services in AWS using the AWS management console, while still keeping their day-to-day management in the Lightsail console.
Amazon Lightsail instances are specifically engineered based on AWS for web servers, developer environments, and other database use cases. Such workloads don’t use the full CPU often or consistently, but occasionally need a performance burst. Amazon Lightsail uses burstable performance instances that provide a baseline level of CPU performance with the additional ability to burst above the baseline.
- This design enables customers to get the performance they need, when they need it, while protecting them from the variable performance or other common side effects that might typically experience from over-subscription in other environments.
Lightsail offers a 1-click secure connection to customers instance’s terminal right from their browser, supporting SSH access for Linux/Unix-based instances and RDP access for Windows-based instances. To use 1-click connections, launch the instance management screens, choose Connect using SSH or Connect using RDP, and a new browser window opens and automatically connects to the customer instance..
- To use 1-click connections, all customers nee launch the instance management screens, click Connect using SSH or Connect using RDP, and a new browser window opens and automatically connects to your instance.
- For those who prefer to use Linux/Unix-based instances using their own client, Lightsail will do the SSH key storing and management work for them, and provide them with a secure key to use in your SSH client.
Each Lightsail instance automatically gets a private IP address and a public IP address. Amazon Lightsail customers can use the private IP to transmit data between Lightsail instances and AWS resources privately, and they can use the public IP to connect to their instance from the Internet through a registered domain name or through an SSH or RDP connection local computer.
- They are able to attach a static IP to the instance, which substitutes the public IP with an IP address that doesn’t change even if the instance is
- A public IP (fixed IP Address) is dedicated to AWS clients Lightsail account. Customers can assign a static IP to an instance, replacing its public IP. stopped and started.
Amazon Lightsail offers a range of operating systems and application templates that are automatically installed when a new Lightsail instance is created. The Application templates include WordPress, Drupal, Joomla!, Ghost, Magento, Redmine, LAMP, Nginx (LEMP), MEAN, Node.js, Django, and more.
- Customers are able to install additional software on their instances by using the in-browser SSH or their own SSH client.
Amazon Lightsail instance is a virtual private server (VPS) that lives in the AWS Cloud. Using AWS Lightsail instances to store customers data, run your code, and build web-based applications or websites. AWS customers instances can connect to each other and to other AWS resources through both public (internet) and private (VPC) networking, and they can create, manage, and connect easily to instances right from the Lightsail console.
Amazon Lightsail Instances
Lightsail provides several options for customers to create their virtual private server. This topic helps them decide which operating system (OS), application, or development stack is right for the project ahead.
Lightsail has two platforms to choose from: Linux/Unix-based or Windows-based platforms.
Lightsail running Windows Server is a fast and dependable environment for deploying applications using the Microsoft Web Platform. Lightsail enables customers to run any compatible Windows-based solution on AWS’ high-performance, reliable, cost-effective, cloud computing platform. Common Windows use cases include Enterprise Windows-based application hosting, website and web-service hosting, data processing, distributed testing, ASP.NET application hosting, and any other application requiring Windows software.
Amazon Linux 2 is the next generation of Amazon Linux, a Linux server operating system from Amazon Web Services (AWS). It provides a secure, stable, and high performance execution environment to develop and run cloud and enterprise applications. With Amazon Linux 2, you get an application environment that offers long term support with access to the latest innovations in the Linux ecosystem. Amazon Linux 2 is provided at no additional charge.
Amazon Lightsail offers instances that provide a baseline amount of CPU performance, but also have the ability to temporarily provide additional CPU performance above the baseline as needed. This is referred to as bursting. The baseline performance and ability to burst are governed by the following instance metrics:
CPU utilization – The percentage of allocated compute units that are in use on your instance. This metric identifies the processing power used to run applications on your instance.
CPU burst capacity percentage – The percentage of CPU performance available to your instance.
CPU burst capacity minutes – The amount of time available for your instance to burst at 100% CPU utilization.
On the CPU utilization metric graphs for customers instance, there is a sustainable zone, and a burstable zone. Lightsail instance can operate in the sustainable zone indefinitely with no impact to the operation of the system. The instance may begin operating in the burstable zone when under heavy load. While operating in the burstable zone the instance is consuming a higher amount of CPU cycles. Therefore, it can only operate in this zone for a limited period of time.
Amazon Lightsail Snapshots
Snapshots are point-in-time backups of instances, databases, or block storage disks. AWS customers can create a snapshot of the resources at any time, or enable automatic snapshots on instances and disks to have Lightsail create snapshots for you. It can be can be used as baselines to create new resources or to back up a data. A snapshot contains all of the data that is needed to restore the resource (from the moment when the snapshot was taken). When restoring a resource by creating it from a snapshot, the new resource begins as an exact replica of the original resource that was used to create the snapshot.
Lightsail users can create point-in-time snapshots of instances, databases, and block storage disks in Amazon Lightsail, and use them as baselines to create new resources or for data backup. A snapshot contains all of the data that is needed to restore resource (from the moment when the snapshot was taken). Customers will be billed a snapshot storage fee for snapshots on their Lightsail account; whether they are manual snapshots, automatic snapshots, copied snapshots, or system disk snapshots. Since resources can fail at any time—creating snapshots frequently helps to avoid permanently losing the existing data.
Amazon Lightsail users can Create manual snapshots of instances, managed databases, and block storage disks at any time. Manual snapshots are stored indefinitely until it is deleted.
Automatic snapshots are a way to schedule daily snapshots of the Linux/Unix instances in Amazon Lightsail. Once a specific time of the day set, Lightsail will automatically take a snapshot for each day at the time it was set and keep seven most recent automatic snapshots.
System disk snapshots
If the instance becomes unresponsive and need to access the files on the system disk, the easy way is to back up the instance root volume by creating a snapshot of it. Then it will be accessed using the files in the system disk by creating a new block storage disk from the snapshot and attaching it to another instance.
Automatic snapshots cannot be tagged or exported directly to Amazon EC2. However, automatic snapshots can be copied and converted into manual snapshots. To copy an automatic snapshot into a manual one, choose Keep from the automatic snapshot’s context menu to copy it as a manual snapshot.
Amazon Lightsail instances are specifically engineered by AWS for web servers, developer environments, and small database use cases. Such workloads don’t use the full CPU often or consistently, but occasionally need a performance burst. Lightsail uses burstable performance instances that provide a baseline level of CPU performance with the additional ability to burst above the baseline. This design enables customers to get the performance they need, when they need it, while protecting their from the variable performance or other common side effects that customers might typically experience from over-subscription in other environments.
Also referred to as a bundle, a Lightsail plan includes a virtual server with a fixed amount of memory (RAM) and compute (vCPUs), SSD-based storage (disks), and a free data transfer allowance. Lightsail plans also offer static IP addresses (5 per account) and DNS management (3 domain zones per account). Lightsail plans are charged on an hourly, on-demand basis, so you only pay for a plan when you’re using it.
Lightsail plans are billed on an on-demand hourly rate, so Lightsail users pay only for what they use. Every Lightsail plan has a fixed hourly price, up to the maximum monthly plan cost. The least expensive Lightsail plan starts at $0.0047 USD/hour ($3.50 USD/month)
Amazon Lightsail managed databases are instances that are dedicated to running databases, instead of other workloads like web servers, mail servers, etc. A managed database can contain multiple user-created databases, and AWS customers can access it by using the same tools and applications that they use with a stand-alone database. Lightsail maintains the security and health of their database’s underlying infrastructure and operating system, so that customers can run a database without deep expertise in infrastructure management.
- Amazon Lightsail managed databases come with a fixed amount of memory, computing power, and SSD based storage in their plans.
- Amazon Lightsail will automatically install and configure your chosen database for you upon creation.
- Amazon Lightsail managed databases provide an easy, low maintenance way to store your data in the cloud. AWS customers can run managed databases either as a new database or by migrating from an existing on-premises or hosted database to Lightsail.
- Amazon Lightsail managed databases support the latest major versions of MySQL. Currently, these versions are MySQL 5.6, 5.7, and 8.0. Lightsail only provides the latest minor version for each major version option.
Amazon Lightsail block storage provides additional storage volumes (called “attached disks” in Lightsail) that customers can attach to your Lightsail instance, similar to an individual hard drive. Attached disks are useful for applications or software that need to separate out specific data from their core service and to protect application data in case of a failure or other issue with their instance and system disk. Attached disks offers consistent performance and low latency needed for applications or software that frequently access their stored data.
Lightsail block storage disks use solid-state drives (SSD). This type of block storage balances a low price and good performance and is intended to support the vast majority of workloads that run on Lightsail. For customers with applications that require sustained IOPS performance, high amounts of throughput per disk, or that are running large databases like MongoDB, Cassandra, etc., we recommend using Amazon EC2 with GP2 or Provisioned IOPS SSD storage instead of Lightsail.
Lightsail block storage is designed to be highly available and reliable. Each attached disk is automatically replicated within its Availability Zone to protect customers from component failure. Lightsail block storage disks are designed for 99.99% availability. Lightsail also supports disk snapshots to allow regular backups of customers data.
Lightsail load balancers allow customers to build highly available websites and applications. By distributing traffic across instances in different Availability Zones and pointing traffic to only healthy target instances, Lightsail load balancers reduce the risk of their application going down due to an issue with their instance or to a datacenter outage. With Lightsail load balancers and multiple target instances, website or application can also accommodate increases in web traffic and maintain good performance for visitors during peak load times.
Lightsail load balancers scale automatically to handle traffic spikes without manually adjust them. If the application experiences a transient spike in traffic, the Lightsail load balancer will automatically scale and continue to efficiently direct traffic to customers Lightsail instances.
- Lightsail supports adding instances as target instances for more than one load balancer, if desired.
- Session persistence enables the load balancer to bind a visitor’s session to a specific target instance. This ensures that all requests from the user during the session are sent to the same target instance.
- Lightsail load balancers support HTTP and HTTPS connections.
- Lightsail load balancers direct traffic to your healthy target instances based on a round robin algorithm.
Each Lightsail instance automatically gets a private IP address and a public IP address. AWS Lightsail customers can use the private IP to transmit data between Lightsail instances and AWS resources privately, for free. They can use the public IP to connect to the instance from the Internet, such as through a registered domain name or through an SSH or RDP connection from local computer. Customers can also attach a static IP to the instance, which substitutes the public IP with an IP address that doesn’t change even if the instance is stopped and started.
- A static IP is a fixed, public IP that is dedicated to customers Lightsail account. AWS customers can assign a static IP to an instance, replacing its public IP.
- DNS is a globally distributed service that translates human readable names like www.example.com into numeric IP addresses, like 192.0.2.1 that computers use to connect to each other.
- It’s important to know that to use a domain in Lightsail, customers need to register it. They can do so that by registering a new domains using Route 53, or your preferred DNS registrar.
Amazon Lightsail is one of the most popular and reliable cloud computing platforms. Lightsail services includes a wide range of compute, storage and content delivery, database, mobile and other services, and it’s a great way to host simple websites as well as complex web or mobile applications in the cloud.
For those who are new to the cloud, the easiest way to get started with Amazon Web Services is with Bitnami. Bitnami provides pre-packaged application images for AWS Cloud servers.
If one interested in creating a personal or small business blog, chances of using WordPress is high. WordPress is one of the most popular blogging platforms in the world, used on over 60 million websites. And it is not hard to see why: WordPress is very easy to use, comes with thousands of extensions and themes, is completely free, and is open source.
With Amazon Lightsail, AWS customers can launch a WordPress site on a virtual private server with a few clicks. the VPS will launch in minutes with WordPress installed and optimized for high performance and security.
- Manage all the sites from one console
- Backup the sites with snapshotting
- Track server metrics and performance
- Set up the domain records
- Access the server via SSH with one-click
- Add resources easily as the site grows
Steps to Launch an Amazon Lightsail Instance
You can create a Linux/Unix-based Lightsail instance (a virtual private server) running an application like WordPress or a development stack like LAMP in seconds. After your instance starts running, you can connect to it via SSH without leaving Lightsail. Here’s how.
- Sign in to your AWS account then click on Lightsail console.
- From the Amazon Lightsail dashboard, click the button Create instance button.
- Choose Linux/Unix as the platform In the Pick your instance image section, select the WordPress image.
- In the Choose your instance plan section, review and select from the available options.
- In the Name your instance section, Enter a name for the new server. Confirm your selections by hitting the Create button.
- On the Instances tab of the Lightsail home page, choose the SSH quick-connect icon for your WordPress instance.
- Choose the Networking tab,
- Choose Create static IP.
- Attached instance, Name your static IP, then choose Create
- Run the command cat bitnami_application_password at the server command prompt to see the password.
- Click on the IP address on your instance.
- In the Username box, enter user, and Enter the default password then click on login
Creating an Amazon Lightsail Load Balancer for WordPress Website
A load balancer is a server that distributes network traffic over a set of servers. By distributing network traffic to a pool of servers, customers can dramatically improve the number of concurrent users their WordPress website can handle. Load balancers also add fault tolerance. The Lightsail load balancer ensures that only healthy WordPress instances attached to the load balancer receive traffic.
A load balancer accepts incoming web traffic and routes it to one or (usually) more servers. Having multiple servers allows customers to scale the number of incoming requests their site can handle, as well as allowing the site to remain responsive if a web server fails. The following diagram shows the solution architecture, which features multiple front-end WordPress servers behind a Lightsail load balancer, a highly available Lightsail database, and uses S3 alongside CloudFront to deliver your media content securely.
Creating a Lightsail load balancer add redundancy to applications or to handle more web traffic. After the load balancer is created, you can attach the Lightsail instances that you want to balance. To learn more, see Lightsail load balancers
Steps to Create Load-balancer
- Sign in to your AWS account and select Lightsail.
- Choose the Networking tab, then Choose Create load-balancer.
- Enter a name for your load balancer, Choose Create load balancer.
- Choose Target instances, then Choose Attach.
- On the Lightsail home page, choose Networking.
- Choose the Inbound traffic tab, and Choose Create certificate.
- Type your domain name, add alternate domains and subdomains, then Choose Create.
- Copy the Certificates section of the page.
- Choose Networking on the Lightsail home page, and Choose the DNS zone.
- Choose Add record to add the first CNAME record.
- Choose CNAME for the record type.
- Toggle to the text file that contains the CNAME records for your certificates.
- From the Lightsail home page, choose Networking
- Select an SSL/TLS certificate to enable HTTPS.
- Your certificate attaches and the yellow warning icon on the tab is gone.
Enabling Hypertext Transfer Protocol Secure (HTTPS) for your WordPress website
Enabling Hypertext Transfer Protocol Secure (HTTPS) for a WordPress website assures visitors that the website is secure; that it’s sending and receiving encrypted data. A non-secure website has an address that starts with
http, such as
https://21clouding.com, while a secure website has an address that starts with
https, such as
This guide shows you how to use the Bitnami HTTPS configuration tool (
bncert) to enable HTTPS on your Certified by Bitnami WordPress instance on Amazon Lightsail. It lets you request certificates only for the domains and subdomains that you specify when making your request.
- Sign in to the Lightsail console.
- On the Lightsail home page, choose the SSH quick connect icon for the instance that you want to connect to.
- Enter the following command to update the packages on your instance:
sudo apt-get update
- Enter the following command to install the software properties package.
sudo apt-get install software-properties-common
- Enter the following command to update apt to include the new repository:
sudo apt-get update -y
- Enter the following command to install Certbot:
sudo apt-get install certbot -y
- enter the following commands to set an environment variable for your domain
- Enter the following command:
- Enter the following command to confirm the variables return the correct values:
echo $DOMAIN && echo $WILDCARD
- Enter the following command to start Certbot in interactive mode.
sudo certbot -d $DOMAIN -d $WILDCARD --manual --preferred-challenges dns certonly
- Enter Y and answer all the necessary inquires including email address
- Copy both TXT recordds and Keep the Lightsail browser-based SSH session open—you return to it later to finish the remaining steps
- On the Lightsail home page, choose the Networking tab, and select DNS zones then fromdrop-down menu, choose TXT record
- Enter the TXT record you copied from Let’s Encrypt certificate request into the Subdomain and Responds with fields as shown in the following screenshot.
- If you registerd your domain name in Route 53, go to the route 53 dashboard follow the same step.
- Open a new browser window and go to https://mxtoolbox.com/TXTLookup.aspx. and enter
- If your TXT records have propagated to the internet’s DNS correctly, you see a response similar to the one shown on Step 5.
- Go to Lightsail browser-based SSH session, and press Enter. Once you get the congratulations message. Look carefully for the cert expiring date.
- To stop the underlying services: Enter
sudo /opt/bitnami/ctlscript.sh stop
- To set an environment variable for your domain enter
- To confirm the variables return the correct values:
- To rename your existing certificate files as backups, enter the following command individually:
sudo mv /opt/bitnami/apache2/conf/server.crt /opt/bitnami/apache2/conf/server.crt.old
sudo mv /opt/bitnami/apache2/conf/server.key /opt/bitnami/apache2/conf/server.key.old
sudo mv /opt/bitnami/apache2/conf/server.csr /opt/bitnami/apache2/conf/server.csr.old
To create links to your Let’s Encrypt certificate files in the Apache directory enter the following:
sudo ln -s /etc/letsencrypt/live/$DOMAIN/privkey.pem /opt/bitnami/apache2/conf/server.key
sudo ln -s /etc/letsencrypt/live/$DOMAIN/fullchain.pem /opt/bitnami/apache2/conf/server.crt
to start the underlying services that you had stopped earlier:
sudo /opt/bitnami/ctlscript.sh start
- To set your wp-config.php file to be writeable, Enter:
sudo chmod 666 /opt/bitnami/apps/wordpress/htdocs/wp-config.php
- Open a browser window and sign in to the administration dashboard of your WordPress instance.
- Choose Plugins from the left navigation pane.
- Choose Add New from the top of the Plugins page.
- Search for Really Simple SSL, and Choose Install Now next to the Really Simple SSL plugin.
- When it’s done installing, choose Activate.
- In the prompt that appears, choose Go ahead, activate SSL!