Skip to main content

Amazon Lightsail: How To Set Up Your First Instance

In 2016, Amazon Web Services (AWS) launched a new service called Amazon Lightsail. Amazon Lightsail is a flat-rate, low-cost computing solution with easy setup and low maintenance. In the server hosting world, these systems are known as Virtual Private Servers (VPS).

Amazon Lightsail VPS is a scaled-down version of its Elastic Compute Cloud (EC2). For production workloads, EC2 instances require a range of fine-tuning like choosing the right Amazon Machine Image (AMI), placement in a virtual private cloud (VPC), assigning security groups, configuring network interfaces, and so on.

Amazon Lightsail instances don’t need any of these. This ease of set up and operation means that Lightsail instances don’t need to be maintained by dedicated server teams. They are ideal for developers, enthusiasts, and small teams.

In this post, I will show you how to set up an Amazon Lightsail instance and we’ll talk about why Amazon decided to get into the VPS market. In part two of this series, we will compare Amazon Lightsail to an established VPS provider like DigitalOcean.

Amazon Lightsail: Setting up your first instance

Setting up a Lightsail VPS is fairly straightforward. The Lightsail website can be accessed from the AWS console.
AWS Compute Solutions
In the following images, we are setting up a bare metal Ubuntu server from the main Lightsail console.
Creating an AWS Lightsail Instance
Choosing AWS Lightsail Instance Base OS
There is also an option to create servers from one of the base images. These images provide applications bundled with an operating system so you don’t have to install them manually:
Amazon Lightsail Application Images
We are not using any launch scripts:
AWS Lightsail Instance Launch Script
Note that if you want Lightsail to create the SSH key for the instance, you can download the private key only once. You can also upload the public part of an existing SSH key, and Lightsail assumes that you have access to the private key.
Generating SSH Key
Downloading SSH Key
We also chose to assign our server 1 GB of RAM, 1 vCPU, and a 30 GB SSD disk with a monthly data transfer rate of 2 TB. The instance will cost is $10 per month (USD). We have named our instance “Test_Ubuntu”:
Choosing AWS Lightsail Instance Size, Location, and Name

It takes less than a minute to provision the server, and it will also be assigned a public IP address. Clicking on the three vertical dots on the instance resource will open a menu from where we can stop, restart, delete, connect to, or manage the instance:
Popup Menu for AWS Lightsail Instance
The connect option will open a new browser window with SSH access, as shown below:
AWS Lightsail Instance Direct_SSH Access

Selecting Manage from the menu or clicking on the instance name in the dashboard will take us to a different screen:
Managing AWS Lightsail Instance
Clicking on “Connect using SSH” will again open the separate SSH screen in the browser. Most users would want to access the instance with a terminal program like PuTTy or from the OS command prompt. Other tabs of the instance’s property page are used for different purposes:

  • Metrics: The performance metrics for Lightsail instances are the same as those available for EC2, only fewer in number. As with CloudWatch metrics, these are available for up to two weeks. The metrics include:
    • CPU Utilization (%)
    • NetworkIn (incoming bytes received by all network interfaces)
    • NetworkOut (outgoing bytes sent by all network interfaces)
    • StausCheckFailed_Instance (if the instance VM itself failed AWS connectivity tests)
    • StatusCheckFailed_System (if the host containing the instance has a failure)
    • StatsuCheckFailed (a combination of StausCheckFailed_Instance and StatusCheckFailed_System)
  • Networking: From here, you can check the public and private IP addresses of the instance. As with EC2, rebooting the instance will assign it a new public IP. You can also assign a static IP to the instance.
Public and Private IP Addresses of AWS Lightsail Instance

Creating a Static IP for AWS Lightsail
Users can also create firewall rules for the instance from the Networking tab:
Firewall Rules can be Enabled for AWS Lightsail Instances

  • Snapshot: For virtual servers, snapshots are like a “point in time” copy of the entire instance. This is a common feature in all virtual server environments and Lightsail is no exception. Users can create snapshots of their Lightsail instance from this tab.  Snapshots are available even after an instance has been terminated, so you can also recreate the instance later. The Snapshots tab lists the last five snapshots of the instance.Creating Snapshots of AWS Lightsail Instances is easy
    The List of Snapshots of AWS Lightsail Instances
  • History: This displays all of the events associated with the Lightsail instance. The image below shows five events: the instance was created, it was assigned a static IP address, and then a snapshot was made. After that, the instance was stopped and started:AWS Lightsail Instance History
  • Delete: This tab allows you to delete the instance.

Advanced Features

There are several advanced features available in Lightsail, including the ability to create static IP addresses and DNS zone records.
Static IPs are fixed public IP addresses attached to an instance. The instance keeps the IP even if it’s rebooted. This is ideal for internet facing servers. Static IPs can be detached from an instance and reassigned to another.
For DNS, Lightsail enables you to create A, CNAME, MX, and TXT resource type records for registered domains:
Creating DNS Zone Record for AWS Lightsail Instance
Creating DNS Records for AWS Lightsail Instance
This means that Lightsail customers can take advantage of the AWS Route 53 service to register a domain name and use that for an instance without having to go to a separate provider.

We created a static IP for our Test_Ubuntu server and configured DNS zone records for a domain name. The zone record (A) points to the static IP. The resource screen in Lightsail now looks like this:
AWS Lightsail Resources

Amazon Lightsail instances can connect to other AWS resources. This is made possible when we enable the VPC peering option from the account properties:
AWS Lightsail Advanced Properties


This was a very brief introduction to Amazon Lightsail. We find it to be a cheap, user-friendly platform that allows you to rapidly set up infrastructure and deploy applications. However, if you are looking for some extra features from your VPS provider, you may want to shop around to see what other vendors have to offer. This is what we will do in the second part of this series, so stay tuned for Amazon Lightsail, part two.

Written by

Sadequl Hussain

Sadequl Hussain is an IT pro based in Sydney, Australia. He comes from a strong database administration backround and has more than 15 years of experience in development, database management, training, and technical writing. Sadequl also holds a number of vendor certifications, including one from AWS. He loves working with cloud technologies, NoSQL / Big Data databases, automation toolsets, open source technologies and Windows / Linux system administration. When he is not doing any of these, Sadequl loves to spend time with his young family.

Related Posts

Sam Ghardashem
Sam Ghardashem
— May 15, 2019

Aviatrix Integration of a NextGen Firewall in AWS Transit Gateway

Learn how Aviatrix’s intelligent orchestration and control eliminates unwanted tradeoffs encountered when deploying Palo Alto Networks VM-Series Firewalls with AWS Transit Gateway.Deploying any next generation firewall in a public cloud environment is challenging, not because of the f...

Read more
  • Amazon Web Services
  • AWS
Joe Nemer
Joe Nemer
— May 3, 2019

AWS Config Best Practices for Compliance

Use AWS Config the Right Way for Successful ComplianceIt’s well-known that AWS Config is a powerful service for monitoring all changes across your resources. As AWS Config has constantly evolved and improved over the years, it has transformed into a true powerhouse for monitoring your...

Read more
  • AWS
  • Compliance
Francesca Vigliani
— April 30, 2019

Cloud Academy is Coming to the AWS Summits in Atlanta, London, and Chicago

Cloud Academy is a proud sponsor of the 2019 AWS Summits in Atlanta, London, and Chicago. We hope you plan to attend these free events that bring the cloud computing community together to connect, collaborate, and learn about AWS. These events are all about learning. You can learn how t...

Read more
  • Amazon Web Services
  • AWS
  • AWS Summits
Joe Nemer
Joe Nemer
— April 1, 2019

AWS EC2 Instance Types Explained

Amazon Web Services’ resource offerings are constantly changing, and staying on top of their evolution can be a challenge. Elastic Cloud Compute (EC2) instances are one of their core resource offerings, and they form the backbone of most cloud deployments. EC2 instances provide you with...

Read more
  • AWS
  • EC2
Sanket Dangi
— February 11, 2019

WaitCondition Controls the Pace of AWS CloudFormation Templates

AWS's WaitCondition can be used with CloudFormation templates to ensure required resources are running.As you may already be aware, AWS CloudFormation is used for infrastructure automation by allowing you to write JSON templates to automatically install, configure, and bootstrap your ...

Read more
  • AWS
  • formation
Andrew Larkin
— January 24, 2019

The 9 AWS Certifications: Which is Right for You and Your Team?

As companies increasingly shift workloads to the public cloud, cloud computing has moved from a nice-to-have to a core competency in the enterprise. This shift requires a new set of skills to design, deploy, and manage applications in cloud computing.As the market leader and most ma...

Read more
  • AWS
  • AWS certifications
Andrew Larkin
— November 28, 2018

Two New EC2 Instance Types Announced at AWS re:Invent 2018 – Monday Night Live

The announcements at re:Invent just keep on coming! Let’s look at what benefits these two new EC2 instance types offer and how these two new instances could be of benefit to you. If you're not too familiar with Amazon EC2, you might want to familiarize yourself by creating your first Am...

Read more
  • AWS
  • EC2
  • re:Invent 2018
Guy Hummel
— November 21, 2018

Google Cloud Certification: Preparation and Prerequisites

Google Cloud Platform (GCP) has evolved from being a niche player to a serious competitor to Amazon Web Services and Microsoft Azure. In 2018, research firm Gartner placed Google in the Leaders quadrant in its Magic Quadrant for Cloud Infrastructure as a Service for the first time. In t...

Read more
  • AWS
  • Azure
  • Google Cloud
Khash Nakhostin
Khash Nakhostin
— November 13, 2018

Understanding AWS VPC Egress Filtering Methods

In order to understand AWS VPC egress filtering methods, you first need to understand that security on AWS is governed by a shared responsibility model where both vendor and subscriber have various operational responsibilities. AWS assumes responsibility for the underlying infrastructur...

Read more
  • Aviatrix
  • AWS
  • VPC
Jeremy Cook
— November 10, 2018

S3 FTP: Build a Reliable and Inexpensive FTP Server Using Amazon’s S3

Is it possible to create an S3 FTP file backup/transfer solution, minimizing associated file storage and capacity planning administration headache?FTP (File Transfer Protocol) is a fast and convenient way to transfer large files over the Internet. You might, at some point, have conf...

Read more
  • Amazon S3
  • AWS
Albert Qian
Albert Qian
— October 18, 2018

Microservices Architecture: Advantages and Drawbacks

Microservices are a way of breaking large software projects into loosely coupled modules, which communicate with each other through simple Application Programming Interfaces (APIs).Microservices have become increasingly popular over the past few years. The modular architectural style,...

Read more
  • AWS
  • Microservices
Stuart Scott
— October 2, 2018

What Are Best Practices for Tagging AWS Resources?

There are many use cases for tags, but what are the best practices for tagging AWS resources? In order for your organization to effectively manage resources (and your monthly AWS bill), you need to implement and adopt a thoughtful tagging strategy that makes sense for your business. The...

Read more
  • AWS
  • cost optimization