

# Create a Lightsail instance
Create an instance

This section covers the following topics related to creating instances in Amazon Lightsail:

**Topics**
+ [

# Create Linux/Unix instances with apps on Lightsail
](getting-started-with-amazon-lightsail.md)
+ [

# Create Windows Server instances in Lightsail
](get-started-with-windows-based-instances-in-lightsail.md)

# Create Linux/Unix instances with apps on Lightsail
Linux instances

**Did you know?**  
 Lightsail stores seven daily snapshots and automatically replaces the oldest with the newest when you enable automatic snapshots for your instance. For more information, see [ Configure automatic snapshots for Lightsail instances and disks ](https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-configuring-automatic-snapshots.html) . 

Create a Linux/Unix-based Amazon Lightsail instance (a virtual private server) running an application like WordPress or a development stack like LAMP. 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](get-started-with-windows-based-instances-in-lightsail.md).

## Create a Linux-based instance


1. On the home page, choose **Create instance**.

1. Select a location for your instance (an AWS Region and Availability Zone).

   Choose **Change AWS Region and Availability Zone** to create your instance in another location.

1. Optionally, you can change the Availability Zone.

   Choose **Change your Availability Zone**.

1. Choose the Linux platform.

1. Pick an application (**Apps \$1 OS**) or an operating system (**OS Only**).

   To learn more about Lightsail instance images, see [Choose an Amazon Lightsail instance image](compare-options-choose-lightsail-instance-image.md).

1. Choose your instance plan.

   Choose whether your instance uses dual-stack (IPv4 and IPv6), or IPv6-only networking. Some Lightsail blueprints don't support IPv6-only networking at this time. To see which blueprints support IPv6-only networking see [Review the Lightsail instance blueprint offerings](compare-options-choose-lightsail-instance-image.md).

   You can try the \$15 USD Lightsail plan free for one month (up to 750 hours). We will credit one free month to your account. Learn more on our [Lightsail pricing page](http://www.amazonlightsail.com/pricing/).
**Note**  
As part of the AWS Free Tier, you can get started with Amazon Lightsail for free on select instance bundles. For more information, see **AWS Free Tier** on the [Amazon Lightsail Pricing page](https://aws.amazon.com/lightsail/pricing).

1. Enter a name for your instance.

   Resource names:
   + 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.

1. (Optional) Choose **Add new tag** to add a tag to your instance. Repeat this step as needed to add additional tags. For more information on tag usage, see [Tags](amazon-lightsail-tags.md).

   1. For **Key**, enter a tag key.  
![\[A tag with only the tag key specified in the Lightsail create instance workflow.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/amazon-lightsail-instance-key-name-only-tags.png)

   1. (Optional) For **Value**, enter a tag value.  
![\[A tag with the tag key and tag value specified in the Lightsail create instance workflow.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/amazon-lightsail-instance-key-name-and-value-tags.png)

1. Choose **Create instance**.

   For advanced creation options, see [Use a launch script to configure your Amazon Lightsail instance when it starts up](lightsail-how-to-configure-server-additional-data-shell-script.md) or [Set up SSH for your Linux/Unix-based Lightsail instances](lightsail-how-to-set-up-ssh.md).

Within minutes, your Lightsail instance is ready and you can connect to it via SSH, without leaving Lightsail\$1

## Connect to your instance


1. On the Lightsail home page, choose the menu on the right of your instance's name, and then choose **Connect**.  
![\[Instance connect.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/amazon-lightsail-connect-to-your-instance.png)

   Alternately, you can open your instance management page, choose the **Connect** tab, then choose **Connect using SSH**.  
![\[Instance connect.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/amazon-lightsail-connect-to-your-instance-from-instance-management-page.png)
**Note**  
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](lightsail-how-to-set-up-putty-to-connect-using-ssh.md).

1. Now you can type commands into the terminal and manage your Lightsail instance without setting up an SSH client.  
![\[Browser-based SSH terminal.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/amazon-lightsail-bitnami-terminal-window.png)

## Next steps


Now that you can connect to your instance, what you do next depends on how you plan to use it. For example:
+ [Configure and manage Lightsail WordPress instances](wordpress-tutorials.md) if you're creating a blog.
+ [Create a static IP address](lightsail-create-static-ip.md) for your instance to keep the same IP address each time you restart your Lightsail instance.
+ [Create a snapshot of your instance](lightsail-how-to-create-a-snapshot-of-your-instance.md) as a backup.

# Create Windows Server instances in Lightsail
Windows instances

**Did you know?**  
 Lightsail stores seven daily snapshots and automatically replaces the oldest with the newest when you enable automatic snapshots for your instance. For more information, see [ Configure automatic snapshots for Lightsail instances and disks ](https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-configuring-automatic-snapshots.html) . 

Create Lightsail instances that run the Windows Server operating system (OS). We have three OS blueprints available: Windows Server 2022, Windows Server 2019, and Windows Server 2016. In addition, we have blueprints that come preconfigured with SQL Server 2022, 2019, and 2016 Express.

This topic provides information about choosing your software, creating your Windows Server-based instance, and connecting to it.

Learn more about [Windows Server on AWS](https://aws.amazon.com/windows/)

## Choose a Windows Server-based instance


There are three options for creating a Windows Server-based instance in Lightsail.

**Windows Server 2022**  
Lightsail running Windows Server is a fast and dependable environment for deploying applications using the Microsoft Web Platform. With Lightsail, you can run any compatible Windows-based solution on the high-performance, reliable, cost-effective AWS 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.  
 [Learn more about the Windows Server 2022 image](https://aws.amazon.com/marketplace/pp/prodview-dq4sxno5vuy7m) 

 **Windows Server 2019**   
Unless you need to run Windows Server 2016 or Windows Server 2019 for some reason, we recommend using the latest version of Windows Server 2022.  
Lightsail running Windows Server is a fast and dependable environment for deploying applications using the Microsoft Web Platform. Lightsail enables you 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.  
 [Learn more about the Windows Server 2019 image](https://aws.amazon.com/marketplace/pp/B07QZ4XZ8F) 

 **Windows Server 2016**   
Unless you need to run Windows Server 2016 or Windows Server 2019 for some reason, we recommend using the latest version of Windows Server 2022.  
Lightsail running Windows Server is a fast and dependable environment for deploying applications using the Microsoft Web Platform. Lightsail enables you 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.  
 [Learn more about the Windows Server 2016 image](https://aws.amazon.com/marketplace/pp/B01M7SJEU7) 

 **SQL Server Express 2022**   
SQL Server Express is a relational database management system that is free to download, distribute, and use. It comprises a database specifically targeted for embedded and smaller-scale applications. This Lightsail image runs on a base OS of Windows Server 2022.  
 [Learn more about the SQL Server Express 2022 image](https://aws.amazon.com/marketplace/pp/prodview-c2jz4lr4h2yc6) 

 **SQL Server Express 2019**   
SQL Server Express is a relational database management system that is free to download, distribute, and use. It comprises a database specifically targeted for embedded and smaller-scale applications. This Lightsail image runs on a base OS of Windows Server 2022.  
 [Learn more about the SQL Server Express 2019 image](https://aws.amazon.com/marketplace/pp/prodview-xbikutlmywslu) 

 **SQL Server Express 2016**   
SQL Server Express is a relational database management system that is free to download, distribute, and use. It comprises a database specifically targeted for embedded and smaller-scale applications. This Lightsail image runs on a base OS of Windows Server 2016.  
 [Learn more about the SQL Server Express image](https://aws.amazon.com/marketplace/pp/B01MAZHH98) 

## Create a Windows Server-based instance


You can create a Windows Server-based instance using the Lightsail console or by using the AWS Command Line Interface (AWS CLI).

**To create an instance using the console**

1. Sign in to Lightsail, and then go to the home page.

1. Choose **Create instance**.

1. Select an AWS Region where you want to create your Windows Server-based Lightsail instance.

   For example, `Ohio (us-east-2)`.

1. Select the **Microsoft Windows** platform.

1. To choose the Windows Server 2022, Windows Server 2019, Windows Server 2016 blueprint, choose **OS Only**.

   To choose the SQL Server Express blueprint, choose **Apps \$1 OS**.

1. Choose your instance plan.

   Choose whether your instance uses dual-stack (IPv4 and IPv6), or IPv6-only networking. Some Lightsail blueprints don't support IPv6-only networking at this time. To see which blueprints support IPv6-only networking see [Review the Lightsail instance blueprint offerings](compare-options-choose-lightsail-instance-image.md).

   A plan also includes a low, predictable cost and a machine configuration (RAM, SSD, vCPU), as well as data transfer.
**Note**  
Some instance plans aren't available for some blueprints. For example, the SQL Server Express blueprint requires that you use a plan with at least 4 GB of memory and 80 GB of SSD storage.

1. Enter a name for your instance.

   Resource names:
   + 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.

1. (Optional) Choose **Add new tag** to add a tag to your instance. Repeat this step as needed to add additional tags. For more information on tag usage, see [Tags](amazon-lightsail-tags.md).

   1. For **Key**, enter a tag key.  
![\[A tag with only the tag key specified in the Lightsail create instance workflow.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/amazon-lightsail-instance-key-name-only-tags.png)

   1. (Optional) For **Value**, enter a tag value.  
![\[A tag with the tag key and tag value specified in the Lightsail create instance workflow.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/amazon-lightsail-instance-key-name-and-value-tags.png)

1. Choose **Create instance**.

**To create an instance using the AWS CLI**

1. If you haven't done so already, install and configure the AWS CLI.

   For more information, see [Configure the AWS Command Line Interface to work with Amazon Lightsail](lightsail-how-to-set-up-and-configure-aws-cli.md).

1. Open a command prompt or a terminal window.

1. If you haven't done so already, configure the AWS CLI using `aws configure` and select the AWS Region where you want to create your Lightsail resources.

1. Type the following AWS CLI command to create a \$144 USD per month Windows Server 2022 instance running in the Ohio region:

   ```
   aws lightsail create-instances --instance-names InstanceName --availability-zone us-east-2a --blueprint-id windows_server_2022 --bundle-id medium_win_3_0
   ```

   In the command, replace *InstanceName* with the name of your new instance.

   If successful, you will see the following output from the AWS CLI.

   ```
   {
       "operations": [
           {
               "status": "Started",
               "resourceType": "Instance",
               "isTerminal": false,
               "statusChangedAt": 1508086226.4,
               "location": {
                   "availabilityZone": "us-east-2a",
                   "regionName": "us-east-2"
               },
               "operationType": "CreateInstance",
               "resourceName": "my-windows-instance",
               "id": "344acdc8-f9c4-4eda-8232-12345EXAMPLE",
               "createdAt": 1508086225.467
           }
       ]
   }
   ```
**Note**  
To get a list of available blueprints, use the [get-blueprints](http://docs.aws.amazon.com/cli/latest/reference/lightsail/get-blueprints.html) command. To get a list of available bundles, use the [get-bundles](http://docs.aws.amazon.com/cli/latest/reference/lightsail/get-bundles.html) command. Learn more about getting the password for your instance using the [get-instance-access-details](http://docs.aws.amazon.com/cli/latest/reference/lightsail/get-instance-access-details.html) command.

## Connect to your instance


Once you create your Windows Server-based Lightsail instance, you can connect to it using either the browser-based RDP client or the remote desktop client of your choice.

**Note**  
After you create your instance, you may need to wait up to 15 minutes before you can connect to it.

**To connect using the Lightsail browser-based RDP client**

1. On the home page, choose the **Connect using RDP** icon next to your instance.  
![\[Lightsail connect.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/connect-to-windows-instance-using-rdp-connection-shortcut.png)

1. Alternately, you can connect to your instance from the shortcut menu or the instance management page.

**To connect using your own RDP client**

1. To get your IP address, go to the Lightsail home page.

1. Copy the IP address to the clipboard.

1. Open an RDP client such as **Remote Desktop Connection** in Windows.

1. Paste the IP address into the **Computer** field.

1. Choose **Show Options**, and then type `Administrator` for your **User name**.  
![\[Remote Desktop Connection application.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/remote-desktop-connection-windows-server-based-instance-lightsail.png)

1. Choose **Connect**.

1. To get your password, go to the instance management page in Lightsail.

   You can get to the instance management page by choosing the name of your instance (or choosing **Manage** from the shortcut menu) on the Lightsail home page.

1. Choose **Show default password**.

1. Copy the default password to the clipboard.

1. Paste your password into **Remote Desktop Connection**, and then choose **Remember me** to prevent this dialog box from appearing in the future.  
![\[Remote Desktop Connection settings.\]](http://docs.aws.amazon.com/lightsail/latest/userguide/images/remote-desktop-connection-enter-credentials-lightsail-windows.png)

1. Choose **OK**.

1. Choose **Don't ask me again for connections to this computer**, and then choose **Yes**.

## Next steps


Now that you can connect to your instance, what you do next depends on how you plan to use it. For example:
+ [Create a static IP address](lightsail-create-static-ip.md) for your instance to keep the same IP address each time you restart your Lightsail instance.
+ [Create a snapshot of your Lightsail Windows Server instance](prepare-windows-based-instance-and-create-snapshot.md).

Follow the step-by-step instructions to create instances running Linux and Unix distributions like Amazon Linux, Ubuntu, Debian, or Windows Server operating systems like Windows Server 2022, 2019, and 2016.

For Linux and Unix instances, you can choose from various application blueprints like WordPress, LAMP, LEMP, or select an operating system only. For Windows Server instances, you can choose from Windows Server blueprints or SQL Server Express blueprints. 

The guide covers selecting the AWS Region and Availability Zone, choosing the instance plan (bundle) with the desired compute and storage resources, configuring networking options like IPv4 and IPv6, naming the instance, and adding tags. After creating the instance, you can connect to it using the Lightsail browser-based SSH or RDP clients, or use your own SSH or RDP client with the provided connection details. By following this guide, you can quickly launch and access Linux and Unix or Windows Server instances in Lightsail, tailored to your specific requirements.