|
1 | 1 | --- |
2 | | -title: Launching a Graviton4 instance |
3 | | -weight: 2 |
| 2 | +title: Provision your Graviton4 environment |
| 3 | +weight: 3 |
4 | 4 |
|
5 | 5 | ### FIXED, DO NOT MODIFY |
6 | 6 | layout: learningpathall |
7 | 7 | --- |
8 | 8 |
|
9 | 9 | ## Requirements |
10 | 10 |
|
11 | | - - An AWS account |
| 11 | +Before you begin, make sure you have the following: |
12 | 12 |
|
13 | | - - Access to launch an EC2 instance of type `c8g.4xlarge` (or larger) with at least 128 GB of storage |
| 13 | +- An AWS account |
| 14 | +- Permission to launch a Graviton4 EC2 instance of type `c8g.4xlarge` (or larger) |
| 15 | +- At least 128 GB of available storage |
14 | 16 |
|
15 | | -For more information about creating an EC2 instance using AWS refer to [Getting Started with AWS](/learning-paths/servers-and-cloud-computing/csp/aws/). |
| 17 | +If you're new to EC2, check out the Learning Path [Getting Started with AWS](/learning-paths/servers-and-cloud-computing/csp/aws/). |
16 | 18 |
|
17 | | -## AWS Console Steps |
| 19 | +## Create an SSH key pair |
18 | 20 |
|
19 | | -Follow these steps to launch your EC2 instance using the AWS Management Console: |
| 21 | +To deploy the Arcee AFM-4.5B model, you need an EC2 instance running on Arm-based Graviton4 hardware. |
20 | 22 |
|
21 | | -### Step 1: Create an SSH Key Pair |
| 23 | +To do this, start by signing in to the [AWS Management Console](https://console.aws.amazon.com), then navigate to the **EC2** service. |
22 | 24 |
|
23 | | -1. **Navigate to EC2 Console** |
| 25 | +From there, you can create an SSH key pair that allows you to connect to your instance securely. |
24 | 26 |
|
25 | | - - Go to the [AWS Management Console](https://console.aws.amazon.com) |
| 27 | +## Set up secure access |
26 | 28 |
|
27 | | - - Search for "EC2" and click on "EC2" service |
| 29 | +Open the **Key Pairs** section under **Network & Security** in the sidebar, and create a new key pair named `arcee-graviton4-key`. |
28 | 30 |
|
29 | | -2. **Create Key Pair** |
| 31 | +Next, select **RSA** as the key type, and **.pem** as the file format. Once you create the key, your browser will download the `.pem` file automatically. |
30 | 32 |
|
31 | | - - In the left navigation pane, click "Key Pairs" under "Network & Security" |
| 33 | +To ensure the key remains secure and accessible, move the `.pem` file to your SSH configuration directory, and update its permissions to restrict access. |
32 | 34 |
|
33 | | - - Click "Create key pair" |
| 35 | +To do this, on macOS or Linux, run: |
34 | 36 |
|
35 | | - - Enter name: `arcee-graviton4-key` |
| 37 | +```bash |
| 38 | +mkdir -p ~/.ssh |
| 39 | +mv arcee-graviton4-key.pem ~/.ssh/ |
| 40 | +chmod 400 ~/.ssh/arcee-graviton4-key.pem |
| 41 | +``` |
| 42 | +internet |
| 43 | +## Launch and configure the EC2 instance |
36 | 44 |
|
37 | | - - Select "RSA" as the key pair type |
| 45 | +In the left sidebar of the EC2 dashboard, select **Instances**, and then **Launch instances**. |
38 | 46 |
|
39 | | - - Select ".pem" as the private key file format |
| 47 | +Use the following settings to configure your instance: |
40 | 48 |
|
41 | | - - Click "Create key pair" |
| 49 | +- **Name**: `Arcee-Graviton4-Instance` |
| 50 | +- **Application and OS image**: |
| 51 | + - Select the **Quick Start** tab |
| 52 | + - Select **Ubuntu Server 24.04 LTS (HVM), SSD Volume Type** |
| 53 | + - Ensure the architecture is set to **64-bit (ARM)** |
| 54 | +- **Instance type**: select `c8g.4xlarge` or larger |
| 55 | +- **Key pair name**: select `arcee-graviton4-key` from the list |
42 | 56 |
|
43 | | - - The private key file will automatically download to your computer |
| 57 | +## Configure network |
44 | 58 |
|
45 | | -3. **Secure the Key File** |
| 59 | +To enable internet access, choose a VPC with at least one public subnet. |
46 | 60 |
|
47 | | - - Move the downloaded `.pem` file to the SSH configuration directory |
| 61 | +Then select a public subnet from the list. |
48 | 62 |
|
49 | | - ```bash |
50 | | - mkdir -p ~/.ssh |
51 | | - mv arcee-graviton4-key.pem ~/.ssh |
52 | | - ``` |
| 63 | +Under **Auto-assign public IP**, select **Enable**. |
53 | 64 |
|
54 | | - - Set proper permissions on macOS or Linux: |
| 65 | +## Configure firewall |
55 | 66 |
|
56 | | - ```bash |
57 | | - chmod 400 ~/.ssh/arcee-graviton4-key.pem |
58 | | - ``` |
| 67 | +Select **Create security group**. Then select **Allow SSH traffic from** and select **My IP**. |
59 | 68 |
|
60 | | -### Step 2: Launch EC2 Instance |
| 69 | +{{% notice Note %}} |
| 70 | +You'll only be able to connect to the instance from your current host, which is the most secure setting. Avoid selecting **Anywhere** unless absolutely necessary, as this setting allows anyone on the internet to attempt a connection. |
61 | 71 |
|
62 | | -1. **Start Instance Launch** |
63 | | - |
64 | | - - In the left navigation pane, click "Instances" under "Instances" |
65 | | - |
66 | | - - Click "Launch instances" button |
67 | | - |
68 | | -2. **Configure Instance Details** |
69 | | - |
70 | | - - **Name and tags**: Enter `Arcee-Graviton4-Instance` as the instance name |
71 | | - |
72 | | - - **Application and OS Images**: |
73 | | - - Click "Quick Start" tab |
74 | | - |
75 | | - - Select "Ubuntu" |
76 | | - |
77 | | - - Choose "Ubuntu Server 24.04 LTS (HVM), SSD Volume Type" |
78 | | - |
79 | | - - **Important**: Ensure the architecture shows "64-bit (ARM)" for Graviton compatibility |
80 | | - |
81 | | - - **Instance type**: |
82 | | - - Click on "Select instance type" |
83 | | - |
84 | | - - Select `c8g.4xlarge` or larger |
85 | | - |
86 | | -3. **Configure Key Pair** |
87 | | - |
88 | | - In "Key pair name", select the SSH keypair you created earlier (`Arcee-Graviton4-Instance`) |
89 | | - |
90 | | -4. **Configure Network Settings** |
91 | | - |
92 | | - - **Network**: Select a VPC with a least one public subnet. |
93 | | - |
94 | | - - **Subnet**: Select a public subnet in the VPC |
95 | | - |
96 | | - - **Auto-assign Public IP**: Enable |
97 | | - |
98 | | - - **Firewall (security groups)** |
99 | | - |
100 | | - - Click on "Create security group" |
101 | | - |
102 | | - - Click on "Allow SSH traffic from" |
103 | | - |
104 | | - - In the dropdown list, select "My IP". |
105 | | - |
106 | | -
|
107 | | -{{% notice Notes %}} |
108 | | -You will only be able to connect to the instance from your current host, which is the safest setting. Selecting "Anywhere" allows anyone on the Internet to attempt to connect; use at your own risk. |
109 | | -
|
110 | | -Although this demonstration only requires SSH access, it is possible to use one of your existing security groups as long as it allows SSH traffic. |
| 72 | +You only need SSH access for this Learning Path. If you already have a security group that allows inbound SSH traffic, you can reuse it. |
111 | 73 | {{% /notice %}} |
112 | 74 |
|
113 | | -5. **Configure Storage** |
114 | | -
|
115 | | - - **Root volume**: |
116 | | - - Size: `128` GB |
117 | | -
|
118 | | - - Volume type: `gp3` |
119 | | -
|
120 | | -7. **Review and Launch** |
121 | | -
|
122 | | - - Review all settings in the "Summary" section |
| 75 | +## Configure storage |
123 | 76 |
|
124 | | - - Click "Launch instance" |
| 77 | +Set the **root volume size** to `128` GB, then select **gp3** as the volume type. |
125 | 78 |
|
126 | | -### Step 3: Monitor Instance Launch |
| 79 | +## Review and launch the instance |
127 | 80 |
|
128 | | -1. **View Launch Status** |
| 81 | +Review all your configuration settings, and when you're ready, select **Launch instance** to create your EC2 instance. |
129 | 82 |
|
130 | | - After a few seconds, you should see a message similar to this one: |
| 83 | +## Monitor the instance launch |
131 | 84 |
|
132 | | - `Successfully initiated launch of instance (i-<unique instance ID>)` |
| 85 | +After a few seconds, you should see a confirmation message like this: |
133 | 86 |
|
134 | | - If instance launch fails, please review your settings and try again. |
| 87 | +``` |
| 88 | +Successfully initiated launch of instance (i-xxxxxxxxxxxxxxxxx) |
| 89 | +``` |
135 | 90 |
|
136 | | -2. **Get Connection Information** |
| 91 | +If the launch fails, double-check the instance type, permissions, and network settings. |
137 | 92 |
|
138 | | - - Click on the instance id, or look for the instance in the Instances list in the EC2 console. |
| 93 | +To retrieve the connection details, go to the **Instances** list in the EC2 dashboard. |
139 | 94 |
|
140 | | - - In the "Details" tab of the instance, note the "Public DNS" host name |
| 95 | +Then select your instance by selecting **Instance ID**. |
141 | 96 |
|
142 | | - - This is the host name you'll use to connect via SSH, aka `PUBLIC_DNS_HOSTNAME` |
| 97 | +In the **Details** tab, copy the **Public DNS** value - you’ll use this to connect through SSH. |
143 | 98 |
|
144 | | -### Step 4: Connect to Your Instance |
| 99 | +## Connect to your instance |
145 | 100 |
|
146 | | -1. **Open Terminal/Command Prompt** |
| 101 | +Open a terminal and connect to the instance using the SSH key you downloaded earlier: |
147 | 102 |
|
148 | | -2. **Connect via SSH** |
149 | | - ```bash |
150 | | - ssh -i ~/.ssh/arcee-graviton4-key.pem ubuntu@<PUBLIC_DNS_HOSTNAME> |
151 | | - ``` |
| 103 | +```bash |
| 104 | +ssh -i ~/.ssh/arcee-graviton4-key.pem ubuntu@<PUBLIC_DNS_HOSTNAME> |
| 105 | +``` |
152 | 106 |
|
153 | | -3. **Accept Security Warning** |
| 107 | +When prompted, type `yes` to confirm the connection. |
154 | 108 |
|
155 | | - - When prompted about authenticity of host, type `yes` |
156 | | -
|
157 | | - - You should now be connected to your Ubuntu instance |
158 | | -
|
159 | | -### Important Notes |
160 | | -
|
161 | | -- **Region Selection**: Ensure you're in your preferred AWS region before launching |
162 | | -
|
163 | | -- **AMI Selection**: The Ubuntu 24.04 LTS AMI must be ARM64 compatible for Graviton processors |
164 | | -
|
165 | | -- **Security**: Think twice about allowing SSH from anywhere (0.0.0.0/0). It is strongly recommended to restrict access to your IP address. |
166 | | -
|
167 | | -- **Storage**: The 128GB EBS volume is sufficient for the Arcee model and dependencies |
168 | | -
|
169 | | -- **Backup**: Consider creating AMIs or snapshots for backup purposes |
| 109 | +You should now be connected to your Ubuntu instance running on Graviton4. |
170 | 110 |
|
| 111 | +{{% notice Note %}} |
| 112 | +**Region**: make sure you're launching in your preferred AWS region. |
| 113 | +**AMI**: confirm that the selected AMI supports the Arm64 architecture. |
| 114 | +**Security**: for best practice, restrict SSH access to your own IP. |
| 115 | +**Storage**: 128 GB is sufficient for the AFM-4.5B model and dependencies. |
| 116 | +**Backup**: consider creating an AMI or snapshot after setup is complete. |
| 117 | +{{% /notice %}} |
171 | 118 |
|
0 commit comments