Skip to content

Commit 9dd5522

Browse files
committed
Delete unused images; update lists
1 parent 871d572 commit 9dd5522

15 files changed

+30
-30
lines changed

content/nginx/deployment-guides/amazon-web-services/ec2-instances-for-nginx.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ This guide explains how to create instances in the Amazon Elastic Compute Cloud
1313

1414
For NGINX Plus, you can buy a prebuilt Amazon Machine Image (AMI) from the AWS Marketplace for a faster option. You can find AMIs for various operating systems, e.g., Amazon Linux, Red Hat Enterprise Linux, and Ubuntu. For instructions, see [Installing NGINX Plus AMIs on Amazon EC2]({{< relref "/nginx/admin-guide/installing-nginx/installing-nginx-plus-amazon-web-services.md" >}}).
1515

16-
## Prerequisites
16+
## Before you begin
1717

18-
These instructions assume you have:
18+
To complete this guide, you will need the following prerequisites:
1919

2020
- An [AWS account](http://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/AboutAWSAccounts.html).
2121
- To follow the [Ansible instructions]({{< relref "#automate-ansible" >}}), you should have basic Linux system administration skills. This includes installing software, managing files and folders, and using the command line.
@@ -26,24 +26,24 @@ These instructions assume you have:
2626

2727
1. Log into the EC2 dashboard in the AWS Management Console: **[https://console.aws.amazon.com/ec2](https://console.aws.amazon.com/ec2)**.
2828

29-
2. In the left navigation bar, choose **Instances**. Then click the **Launch Instances** button in the top right corner.
29+
1. In the left navigation bar, choose **Instances**. Then click the **Launch Instances** button in the top right corner.
3030

31-
3. On the **Launch an Instance** page, give your new instance a name in the **Name and Tags** section. This name will show in the Name column of the summary table on the EC2 Instances dashboard. This guide is using "instance-name."
31+
1. On the **Launch an Instance** page, give your new instance a name in the **Name and Tags** section. This name will show in the Name column of the summary table on the EC2 Instances dashboard. This guide is using "instance-name."
3232

33-
4. In the **Application and OS Images (Amazon Machine Image)** section click the image of the Linux distribution of your choice.
33+
1. In the **Application and OS Images (Amazon Machine Image)** section click the image of the Linux distribution of your choice.
3434

3535
{{< img src="/img/aws/aws-nlb-instance-choose-ami.png" alt="Screenshot of AMI section on the EC2 Launch Instance page">}}
3636

37-
5. In the **Instance Type** section, use the dropdown to choose an appropriate instance type. The screenshot shows the **t2.micro** instance type selected by default. This type is sufficient for demo purposes.
37+
1. In the **Instance Type** section, use the dropdown to choose an appropriate instance type. The screenshot shows the **t2.micro** instance type selected by default. This type is sufficient for demo purposes.
3838

3939
{{<note >}}At the time of publication, AWS offered 750 hours of free usage each month for this instance type. This applies during your first year with an AWS account. Keep in mind, though, that several NGINX instances running all day will use the free 750 hours up quickly. For example, 6 instances will use them in just over 5 days. If you use 8 instances, you'll hit the limit in under 4 days.{{</note>}}
4040

4141
{{< img src="/img/aws/aws-nlb-instance-choose-type.png" alt="Screenshot of Instance Type on the EC2 Launch Instance page">}}
4242

43-
6. In the **Key pair (login)** section, you can select an existing key pair, or create a new one. If you click on "Create new key pair," a window will pop up allowing you to download a key pair to your specifications.
43+
1. In the **Key pair (login)** section, you can select an existing key pair, or create a new one. If you click on "Create new key pair," a window will pop up allowing you to download a key pair to your specifications.
4444
{{<note>}} It's best practice — and necessary in production — to create a separate key for each EC2 instance. This way, if a key is compromised, only that one instance is at risk.{{</note>}}
4545

46-
7. Scroll down to the **Network settings** section. You can leave the defaults for VPC, and Subnet. Under **Firewall (Security Groups)** you can either create a new security group or use an existing one. If this is your first setup, keep “Create security group” checked. Also, select “Allow HTTP traffic from the internet.” If desired, also check “Allow HTTPS traffic from the internet”.
46+
1. Scroll down to the **Network settings** section. You can leave the defaults for VPC, and Subnet. Under **Firewall (Security Groups)** you can either create a new security group or use an existing one. If this is your first setup, keep “Create security group” checked. Also, select “Allow HTTP traffic from the internet.” If desired, also check “Allow HTTPS traffic from the internet”.
4747

4848
This will create the following inbound security group rules:
4949

@@ -52,12 +52,12 @@ These instructions assume you have:
5252
- **Protocol** – TCP
5353
- **Port Range** – 22
5454
- **Source** – Custom `0.0.0.0/0`
55-
2. Accept unencrypted HTTP connections from all sources
55+
1. Accept unencrypted HTTP connections from all sources
5656
- **Type** – HTTP
5757
- **Protocol** – TCP
5858
- **Port Range** – 80
5959
- **Source** – Custom `0.0.0.0/0`
60-
3. Accept encrypted HTTPS connections from all soruces (optional)
60+
1. Accept encrypted HTTPS connections from all soruces (optional)
6161
- **Type** – HTTPS
6262
- **Protocol** – TCP
6363
- **Port Range** – 443
@@ -69,21 +69,21 @@ These instructions assume you have:
6969

7070
{{< img src="/img/aws/aws-instance-select-sg.png" alt="Screenshot of Network Settings on the EC2 Launch Instance page with the option of selecting an existing security group">}}
7171

72-
8. In the **Configure Storage** section, leave the defaults unchanged.
72+
1. In the **Configure Storage** section, leave the defaults unchanged.
7373

74-
9. In the right-hand panel, verify the settings shown in the **Summary** are correct. If so, click the **Launch Instance** button in the lower-right corner.
74+
1. In the right-hand panel, verify the settings shown in the **Summary** are correct. If so, click the **Launch Instance** button in the lower-right corner.
7575

7676
{{< img src="/img/aws/aws-instance-summary.png" alt="Screenshot of the Summary panel on the EC2 Launch Instance page with button to launch instance">}}
7777

78-
10. After you launch the instance, you will be redirected. The new page will show a success message confirming that your instance launched successfully. Click on the id of the new instance to be taken back to the EC2 Instances page.
78+
1. After you launch the instance, you will be redirected. The new page will show a success message confirming that your instance launched successfully. Click on the id of the new instance to be taken back to the EC2 Instances page.
7979

8080
{{< img src="/img/aws/aws-instance-launch-success.png" alt="Screenshot of the Summary panel on the EC2 Launch Instance page with button to launch instance">}}
8181

82-
11. On the EC2 Instances page, you can see all the instances you have created so far, including your new instance. The following screenshot shows a single instance:
82+
1. On the EC2 Instances page, you can see all the instances you have created so far, including your new instance. The following screenshot shows a single instance:
8383

8484
{{< img src="/img/aws/aws-generic-instance-display-first.png" alt="Screenshot of the EC2 Instances page with a single instance">}}
8585

86-
12. Finalize your security group rules. You only need to do this for the first instance in a set. All other instances in that set can use the same security group.
86+
1. Finalize your security group rules. You only need to do this for the first instance in a set. All other instances in that set can use the same security group.
8787

8888
- In the left navigation bar, select **Security Groups**.
8989
- Select the security group by clicking its radio button in the leftmost column of the table. A panel opens in the lower part of the window displaying details about the group.
@@ -98,17 +98,17 @@ These instructions assume you have:
9898

9999
{{< img src="/img/aws/aws-generic-instance-security-outbound.png" alt="Screenshot of the EC2 Security Group outbound rules page">}}
100100

101-
13. To install NGINX software on the instance, first [connect]({{< relref "#connect-to-an-ec2-instance" >}}) to it. Then follow the instructions in the NGINX Plus Admin Guide for [NGINX Open Source]({{< relref "/nginx/admin-guide/installing-nginx/installing-nginx-open-source#prebuilt" >}}) and [NGINX Plus]({{< relref "/nginx/admin-guide/installing-nginx/installing-nginx-plus.md" >}}).
101+
1. To install NGINX software on the instance, first [connect]({{< relref "#connect-to-an-ec2-instance" >}}) to it. Then follow the instructions in the NGINX Plus Admin Guide for [NGINX Open Source]({{< relref "/nginx/admin-guide/installing-nginx/installing-nginx-open-source#prebuilt" >}}) and [NGINX Plus]({{< relref "/nginx/admin-guide/installing-nginx/installing-nginx-plus.md" >}}).
102102

103103
---
104104

105105
## Connect to an EC2 Instance
106106
To install and configure NGINX Open Source or NGINX Plus on an instance, open a terminal window and connect to the instance over SSH.
107107

108108
1. Navigate to the **Instances** tab on the EC2 Dashboard if you are not there already.
109-
2. Click the row for an instance to select it.
110-
3. Click the **Connect** button above the list of instances. You will be redirected to the **Connect To Instance** page. The **SSH client** tab will be selected by default.
111-
4. Follow the instructions on the page, which are customized to the selected instance. There is a sample `ssh` command with the name of the key file and the hostname of your instance.
109+
1. Click the row for an instance to select it.
110+
1. Click the **Connect** button above the list of instances. You will be redirected to the **Connect To Instance** page. The **SSH client** tab will be selected by default.
111+
1. Follow the instructions on the page, which are customized to the selected instance. There is a sample `ssh` command with the name of the key file and the hostname of your instance.
112112

113113
{{< img src="/img/aws/aws-nlb-instance-connect.png" alt="Screenshot of the EC2 Instance Connect with SSH page">}}
114114

@@ -128,17 +128,17 @@ NGINX, Inc. releases a combined Ansible role for NGINX Open Source and NGINX P
128128

129129
1. [Connect to the EC2 instance]({{< relref "#connect-instance" >}}).
130130

131-
2. Install Ansible following the [instructions](https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html) for the operating system on your EC2 instance.
131+
1. Install Ansible following the [instructions](https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html) for the operating system on your EC2 instance.
132132

133-
3. Install the official Ansible role from NGINX:
133+
1. Install the official Ansible role from NGINX:
134134

135135
```shell
136136
ansible-galaxy install nginxinc.nginx
137137
```
138138

139-
4. (NGINX Plus only) Copy the **nginx-repo.key** and **nginx-repo.crt** files provided by NGINX, Inc. to **~/.ssh/ngx-certs/**.
139+
1. (NGINX Plus only) Copy the **nginx-repo.key** and **nginx-repo.crt** files provided by NGINX, Inc. to **~/.ssh/ngx-certs/**.
140140

141-
5. Create a file called **playbook.yml** with the following contents:
141+
1. Create a file called **playbook.yml** with the following contents:
142142

143143
```none
144144
---
@@ -148,13 +148,13 @@ NGINX, Inc. releases a combined Ansible role for NGINX Open Source and NGINX P
148148
- role: nginxinc.nginx
149149
```
150150

151-
5. Run the playbook:
151+
1. Run the playbook:
152152

153153
```shell
154154
ansible-playbook playbook.yml
155155
```
156156

157-
6. Confirm that Nginx is installed by running `nginx -v`.
157+
1. Confirm that Nginx is installed by running `nginx -v`.
158158

159159

160160
## Optional: Create an NGINX Open Source AMI
@@ -163,17 +163,17 @@ To simplify installing NGINX Open Source on several instances, create an AMI fro
163163

164164
1. Follow the instructions in [Create Amazon EC2 Instance]({{< relref "#create-ec2-instances" >}}) and [Install NGINX software]({{< relref "#install-nginx-software" >}}).
165165

166-
2. Navigate to the **Instances** tab on the Amazon EC2 Dashboard.
166+
1. Navigate to the **Instances** tab on the Amazon EC2 Dashboard.
167167

168-
3. Select the base instance with NGINX installed by clicking its row in the table.
168+
1. Select the base instance with NGINX installed by clicking its row in the table.
169169

170-
4. Click the **Actions** button and select **Image and templates** and then **Create Image**.
170+
1. Click the **Actions** button and select **Image and templates** and then **Create Image**.
171171

172172
{{< img src="/img/aws/aws-generic-create-image-menu.png" alt="Screenshot of the EC2 Create Image button menu">}}
173173

174-
5. On the **Create Image** page, enter the **Image name** and optionally give an **Image description**. Then click the **Create image** button. You will be returned to the Instances page with a green alert message that the image is being created.
174+
1. On the **Create Image** page, enter the **Image name** and optionally give an **Image description**. Then click the **Create image** button. You will be returned to the Instances page with a green alert message that the image is being created.
175175

176-
6. To verify that the image was created, navigate to the **AMIs** tab and find the new image by the name you gave it.
176+
1. To verify that the image was created, navigate to the **AMIs** tab and find the new image by the name you gave it.
177177

178178
### Revision History
179179

-47.7 KB
Binary file not shown.
-49.5 KB
Binary file not shown.
-89.8 KB
Binary file not shown.
-60.4 KB
Binary file not shown.
-26.2 KB
Binary file not shown.
-79.8 KB
Binary file not shown.
-66.6 KB
Binary file not shown.
-46.2 KB
Binary file not shown.
-50 KB
Binary file not shown.

0 commit comments

Comments
 (0)