Get started with Linux/Unix-based instances in Amazon Lightsail
Last updated: August 19, 2021
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.
To create a Windows-based instance, see Get started with Windows-based instances in Amazon Lightsail.
Create a Linux-based instance
On the home page, choose Create instance.
Select a location for your instance (an AWS Region and Availability Zone).
Choose Change Region and zone to create your instance in another location.
Optionally, you can change the Availability Zone.
Choose an Availability Zone from the dropdown list.
Choose the Linux platform.
Pick an application (Apps + OS) or an operating system (OS Only).
To learn more about Lightsail instance images, see Choose an Amazon Lightsail instance image.
Choose your instance plan.
You can try the $3.50 USD Lightsail plan free for one month (up to 750 hours). We'll credit one free month to your account. Learn more on our Lightsail pricing page.
For a limited time, Lightsail is extending its free tier to include three months free on select instance plans. The offer applies to new or existing AWS accounts who started using Lightsail on or after July 8, 2021. Offer only applies to one bundle per account. Standard charges apply after the first 750 hours of usage of the selected bundle each month.
You can use the following instance plans free for three months:
Linux/Unix instance plans: $3.50 USD per month, $5 USD per month, and $10 USD per month
Windows instance plans: $8 USD per month, $12 USD per month, and $20 USD per month
Enter a name for your instance.
Must be unique within each AWS Region in your Lightsail account.
Must contain 2 to 255 characters.
Must start and end with an alphanumeric character or number.
Can include alphanumeric characters, numbers, periods, dashes, and underscores.
Choose one of the following options to add tags to your instance:
Add key-only tags or Edit key-only tags (if tags have already been added). Enter your new tag into the tag key text box, and press Enter. Choose Save when you’re done entering your tags to add them, or choose Cancel to not add them.
Create a key-value tag, then enter a key into the Key text box, and a value into the Value text box. Choose Save when you’re done entering your tags, or choose Cancel to not add them.
Key-value tags can only be added one at a time before saving. To add more than one key-value tag, repeat the previous steps.
For more information about key-only and key-value tags, see Tags in Amazon Lightsail.
Choose Create instance.
For advanced creation options, see Use a launch script to configure your Amazon Lightsail instance when it starts up or Set up SSH for your Linux/Unix-based Lightsail instances.
Within minutes, your Lightsail instance is ready and you can connect to it via SSH, without leaving Lightsail!
Connect to your instance
On the Lightsail home page, choose the menu on the right of your instance's name, and then choose Connect.
Alternately, you can open your instance management page and choose the Connect tab.
To connect to your instance using an SSH client such as PuTTy, you can follow this procedure: Set up PuTTy to connect to your Lightsail instance.
Now you can type commands into the terminal and manage your Lightsail instance without setting up an SSH client.
Now that you can connect to your instance, what you do next depends on how you plan to use it. For example: