Home/Blog/Cloud Computing/What is Amazon Lightsail?
Home/Blog/Cloud Computing/What is Amazon Lightsail?

What is Amazon Lightsail?

Saqib Ilyas
Jun 12, 2024
6 min read
content
An example
Some other use cases
Some Lightsail features
Creating an instance in Lightsail
Next steps
share

Amazon Lightsail is an infrastructure as a service (IaaS) offering by AWS that enables users to spin up a virtual server with a preconfigured environment for a predictable price. However, when would you use Lightsail, and what exactly does it have to offer? This blog attempts to answer these questions. Let’s start with an answer. Lightsail makes it easy to create a virtual machine with a predictable monthly price. It provides an easy-to-use platform for developers, small businesses, and students to quickly deploy and manage cloud infrastructure without the complexity of traditional cloud services.

An example

One of the most common web development stacks is MERN. Imagine that you want to deploy your website based on the MERN stack. What are your options? You could choose from the following options (ignoring Lightsail for now):

  • A shared or virtual private server (VPS) hosting provider like Hostinger

  • Cloud virtual machine hosting like AWS EC2

Shared hosting gives you the lowest price point, whereas the VPS hosting option can be considered in the moderate price range. The EC2 option price is variable since it is billed according to usage. Often, cloud adopters are astonished when they switch to EC2, thinking they’ll save money but pay more than expected for various reasons. The benefit of EC2 in this scenario is that it provides us with virtually unlimited scalability, whereas the shared and VPS hosting options provide limited scalability. With EC2, you also have much control over the infrastructure, with the added responsibility of using it wisely. With shared and VPS hosting, you have limited control over the infrastructure since most of it is preconfigured. Being preconfigured makes shared and VPS hosting easier to use compared to EC2.

So, at one end, there is the ease of use and cost predictability of shared hosting, whereas at the other end, we have the flexibility of offerings like EC2. Lightsail brings the flexibility of cloud computing with predictable pricing. You get the preconfigured templates for ease of use. You get the ability to scale your deployment. At the same time, you have predictable monthly pricing. Currently, a single-core Linux virtual machine with 512 MB of RAM, 20 GB of SSD storage, and 1 TB of data transfers costs 3.5 USD monthly. A beefy 8-core Linux virtual machine with 32 GB RAM, 640 GB SSD storage, and 7 TB data transfer costs 160 USD per month. Also, there is even a limited-time offer to get the first 90 days for free at the time of this writing.

Some other use cases

Deploying a MERN stack application is great, but in what other scenarios would Lightsail be a good choice? Here’s a list of some other common use cases:

  • Development environment: Software developers can use Lightsail to spin up a development or testing environment in the cloud to focus on coding.

  • Experimentation: Thanks to the affordable pricing, small teams can use it for low-stake experimentation.

  • Content delivery network (CDN): It can even be used as the origin server for a CDN.

  • Mobile application backend: We can even use a Lightsail server as a backend for mobile applications.

  • Web backend: We can use multiple Lightsail instances, one for each service that runs in a web application. For example, separate database and web servers.

  • Scalability: Lightsail isn’t only for the simplest of applications. We can create complex and highly available applications using load balancers and multiple instances. If our application storage requirements grow, we can even attach external block storage later.

  • Research: There’s even a Lightsail for research, which allows academics and researchers to create virtual machines with commonly used research software (such as RStudio and Scilab) preinstalled.

Some Lightsail features

Lightsail provides virtual machines with varying hardware specifications and many different operating systems. Lightsail offers common preconfigured software development stacks like Node.js, MERN, Django, and LAMP. It also has options for preinstalled e-commerce and project management applications like Magento and Redmine. We can also spin up instances with a preinstalled CMS like Joomla, Drupal, or WordPress, which makes creating websites a breeze.

Lightsail also provides its object storage named bucket. You can create a bucket for static assets used by your web application. This creates a separation of static assets from the application itself. You can also use a bucket for backup and restore of your application.

Lightsail also provides a container service. It simplifies deploying and managing a containerized application than the more complex container orchestration services. It easily integrates with other Lightsail services like load balancers. This service is a low-friction way to try out containerized application deployment on the web.

Creating an instance in Lightsail

Let’s see how easy it is to create a preconfigured instance in Lightsail. The following slides demonstrate how to do this.

Slide 1: We head over to the Amazon Lightsail dashboard. We will be greeted with a message and informed of the number of instances running, if any. On the left, we’ll notice that the “Instances” menu (highlighted in the slide with a red rectangle) is selected by default. Click the “Create instance” button (highlighted with a rectangle with a dotted outline).

Slide 2: We’ll land on the “Create an Instance” wizard. The first section allows us to select the location where our instance will be created. We sometimes need to select an appropriate region based on proximity to the users. On the other hand, a researcher might not care where their instance is created. The next two sections allow us to pick an operating system and runtime. Slightly below this (not shown in the slide deck) is an “Optional” section where we can specify a script to be run on the instance once it is launched using the “Add launch script” button. This helps apply initial configurations, such as bootstrapping a database server with initial data.

Slide 3: As we scroll down in the wizard, we’ll be prompted to choose an instance plan. By default, AWS is offering a “Dual-stack” machine, meaning that it has IPv4, as well as IPv6 support. Next, we can choose an instance size, which affects the monthly pricing.

Slide 4: Scrolling further, we can identify our instance with a unique name. We are also allowed to create multiple instances with identical configurations. This could be useful for high availability. Next, we have some tagging options to help identify and distinguish our instances. For instance, we could create and assign different tags to development and production machines. Once satisfied with the selections, click the “Create instance” button (highlighted with a red rectangle).

Slide 5: We’ll arrive at a page that displays a greeting and informs us that the creation of the instance is “pending.” In a few minutes, the instance will be deployed and available.

Slide 6: Soon, once the instance is ready, the cube’s color in the instance state will change to green, and we’ll be able to see its IP addresses as well. We can use these to connect to the running web application or to the instance via SSH.

canvasAnimation-image
1 of 6

Next steps

We hope that this blog has piqued your curiosity. If you like the convenience and price point that Ligtsail offers, play with the service by creating various scenarios involving load balancers, database servers, or machine learning distributions. Our Cloud Labs product is very popular among our learners for providing a to-the-point and hands-on, right-sized learning experience without having to sign up for an AWS account. Happy learning!

Further learning

Further learning

Check out this Cloud Lab to learn more about Amazon Lightsail.

Check out this Cloud Lab to learn more about Amazon Lightsail.