AWS lightsail documentation change
Summary
Reorganized steps, added blueprint vendor identification guidance, expanded snapshot documentation, and added HTTPS configuration reference
Security assessment
Added reference to 'Secure your Lightsail Nginx website with Let's Encrypt SSL/TLS' documentation which provides security guidance for enabling HTTPS. While this improves security documentation, there's no evidence of addressing a specific vulnerability.
Diff
diff --git a/lightsail/latest/userguide/amazon-lightsail-quick-start-guide-nginx.md b/lightsail/latest/userguide/amazon-lightsail-quick-start-guide-nginx.md index 5cca652a8..623924011 100644 --- a//lightsail/latest/userguide/amazon-lightsail-quick-start-guide-nginx.md +++ b//lightsail/latest/userguide/amazon-lightsail-quick-start-guide-nginx.md @@ -5,2 +4,0 @@ -Step 1: Get the default application password for your Nginx instanceStep 2: Attach a static IP address to your Nginx instanceStep 3: Visit your Nginx instance welcome pageStep 4: Map your domain name to your Nginx instanceStep 5: Read the Bitnami documentationStep 6: Create a snapshot of your Nginx instance - @@ -13 +11,8 @@ Did you know that you can enable automatic snapshots for your instance? With aut -Here are a few steps you should take to get started after your Nginx instance is up and running on Amazon Lightsail: +Here are a few steps you should take to get started after your Nginx instance is up and running on Amazon Lightsail. Before you get started, identify your blueprint vendor on your instance management page: + + + +Select the appropriate guide for your Nginx instance: + +Bitnami + @@ -72,0 +78,76 @@ For more information, see the [Bitnami Nginx for AWS Cloud](https://docs.bitnami +## Step 6: Create a snapshot of your Nginx instance + +After you configure your website the way you want it, create periodic snapshots of your instance to back it up. A snapshot is a copy of the system disk and original configuration of an instance. A snapshot contains all of the data that is needed to restore your instance (from the moment when the snapshot was taken). + +You can create [snapshots manually](https://docs.aws.amazon.com/lightsail/latest/userguide/understanding-snapshots-in-amazon-lightsail.html#manual-snapshots), or [enable automatic snapshots](https://docs.aws.amazon.com/lightsail/latest/userguide/understanding-snapshots-in-amazon-lightsail.html#automatic-snapshots) to have Lightsail create daily snapshots for you. If something goes wrong with your instance, you can create a new replacement instance using the snapshot. + +You can work with snapshots on your instance's management page on the **Snapshots** tab. For more information, see [Snapshots in Amazon Lightsail](./understanding-snapshots-in-amazon-lightsail.html). + + + +Lightsail + + +## Step 1: Get the default application password for your Nginx instance + +You need the default application password to access pre-installed applications or services on your instance. + + 1. On your instance management page, under the **Connect** tab, choose **Connect using SSH**. + + 2. After you're connected, enter the following command to get the default application password: + + cat ~/application_credentials + +You should see a response similar to this, which contains the default application password: + + + + + + +## Step 2: Attach a static IP address to your Nginx instance + +The default dynamic public IP address attached to your instance changes every time you stop and start the instance. You can create a static IP address and attach it to your instance to keep the public IP address from changing. Later, when you use your domain name with your instance, you don’t have to update your domain’s DNS records each time you stop and start the instance. You can attach only one static IP address to each instance. + +On the instance management page, under the **Networking** tab, choose **Create a static IP** or **Attach static IP** (if you previously created a static IP that you can attach to your instance), then follow the instructions on the page. For more information, see [Create a static IP and attach it to an instance](./lightsail-create-static-ip.html). + + + +## Step 3: Visit your Nginx instance welcome page + +Navigate to the static IP address of your instance to access the application installed on it or access phpMyAdmin. + + 1. On your instance management page, copy the static IP address: + + + + 2. Paste the static IP address into your browser address, for example `http://192.0.0.1`. + + + + +For more information, see the [Nginx admin guide](https://docs.nginx.com/nginx/admin-guide/). + +## Step 4: Map your domain name to your Nginx instance + +To map your domain name, such as `example.com`, to your instance, you add a record to the domain name system (DNS) of your domain. DNS records are typically managed and hosted at the registrar where you registered your domain. However, we recommend that you transfer management of your domain's DNS records to Lightsail so that you can administer it using the Lightsail console. + +On the Lightsail console home page, under the **Networking** tab, choose **Create DNS zone** , then follow the instructions on the page. + +For more information, see [Create a DNS zone to manage your domain’s DNS records](./lightsail-how-to-create-dns-entry.html). + +For enabling HTTPS, see [Secure your Lightsail Nginx website with Let's Encrypt SSL/TLS](./amazon-lightsail-using-lets-encrypt-certificates-with-nginx.html). + +## Step 5: Deploy your application + + 1. Follow the instructions from [ Transfer files between Linux instances on Lightsail using scp ](./amazon-lightsail-transfer-files-between-linux-instances.html) to copy your application to `/usr/share/nginx/html` + + 2. On your instance management page, under the **Connect** tab, choose **Connect using SSH**. + + 3. Run `sudo systemctl restart nginx` + + 4. Navigate to your instance's static IP address + + + +