> For the complete documentation index, see [llms.txt](https://sending-network.gitbook.io/sending.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sending-network.gitbook.io/sending.network/edge-node/vps-setup-guide/amazon-web-services-aws.md).

# Amazon Web Services (AWS)

In this tutorial, we will walk you through setting up a Virtual Private Server (VPS) on Amazon Web Services (AWS), installing Ubuntu, and running a script that boosts up our node with a few commands. Do not worry if you have no technical background; we will keep things simple and straightforward.

### Step 1: Create an Amazon Web Services

1. Go to the [Amazon Web Services website](https://aws.amazon.com/free/?gclid=Cj0KCQjwqpSwBhClARIsADlZ_TnTYalK3GdHJKr4zFyQJFeVNc_jgNF2t-2X0VBoC3e494Vv38xN8fQaAh9YEALw_wcB\&trk=fce796e8-4ceb-48e0-9767-89f7873fac3d\&sc_channel=ps\&ef_id=Cj0KCQjwqpSwBhClARIsADlZ_TnTYalK3GdHJKr4zFyQJFeVNc_jgNF2t-2X0VBoC3e494Vv38xN8fQaAh9YEALw_wcB:G:s\&s_kwcid=AL!4422!3!592542020599!e!!g!!aws!1644045032!68366401852).
2. Click on the "Create a Free Account" button.
3. Follow the instructions to create your AWS account. You need to provide billing information.

{% hint style="info" %}
Please note that AWS offers a one-year free trial, but the configurations available may not meet our hardware requirements.
{% endhint %}

### Step 2: Set Up a Virtual Private Server (VPS)

1. Once logged in, click on left sidebar of the home page, and click on "All services".<br>

   <figure><img src="/files/GfQDvQdjhLt825drDnao" alt=""><figcaption></figcaption></figure>
2. Then, you will see the list of all the services. Click on "EC2" to enter EC2 dashboard.<br>

   <figure><img src="/files/sRdsY6ndMBpYv5LbaJso" alt=""><figcaption></figcaption></figure>
3. Here, you could see the statistics of your resources. Click on "Launch Instance", and begin to set up your VPS.<br>

   <figure><img src="/files/y8boVx4jcWHKoXEl2oqr" alt=""><figcaption></figcaption></figure>
4. Create a name for your instance.
5. In the "Application and OS images" section, choose Ubuntu server.<br>

   <figure><img src="/files/UYZOpGjVBHgi2rQcxa51" alt=""><figcaption></figcaption></figure>
6. Then, in the "Instance type" section, choose one instance which you think is cost-effective. Please note that 4vCPU and 4GB for Memory are the minimum requirement.<br>

   <figure><img src="/files/bqIN4QAKENomAnJW8vPb" alt=""><figcaption></figcaption></figure>
7. Next, in the "Key pair" section, click on "Create new key pair" if you do not have key pair before.<br>

   <figure><img src="/files/AOe1Xjp3HQhN82KqQSE5" alt=""><figcaption></figcaption></figure>
8. Name your key pair. Then, you could choose an RSA key pair saved in the *.pem* file. When you click on "Create key pair", the key pair file will be downloaded automatically. Make sure you save this file in a secure and accessible location, and this file will be used to access your server in the future.<br>

   <figure><img src="/files/uwQalCXYpVJRv843LojE" alt=""><figcaption></figcaption></figure>
9. In the "Configure storage" section, please set up 200 GB of storage.<br>

   <figure><img src="/files/Ur3DSTUNFGveBwvifF3y" alt=""><figcaption></figcaption></figure>
10. Finally, click on "Launch instance".
11. When you see the following page. Congratulations! Your instance has been set up successfully.<br>

    <figure><img src="/files/Lnlxf3RKBtB2L8Askm5c" alt=""><figcaption></figcaption></figure>

### (Edge Node Only) Step 3: Configure the firewall

1. Go back to the instance list, click on the "instance ID" of the instance you just created.<br>

   <figure><img src="/files/CopGKgUiXfn4LiEWXlg1" alt=""><figcaption></figcaption></figure>
2. After you enter the detailed information of your instance, you could scroll down, click on "Security" tab, and click on "Security groups ID" to enter the page of security groups.<br>

   <figure><img src="/files/4Ni5LRYpldbcXsfUZvIC" alt=""><figcaption></figcaption></figure>
3. After you enter the page of the specific Security Groups, click on "Edit inbound rules".<br>

   <figure><img src="/files/Y3UOnQzPu8oDyWqs8Ten" alt=""><figcaption></figcaption></figure>
4. Click on "Add rule", and it will add one rule at a time. Four ports need to be opened, so you need to add four rules. <br>

   1. In the "Type" section, choose "Custom TCP" for each rule.
   2. In the "Port range" section, choose "9085, 15858, 9702, 2112" successively.
   3. In the "Source" section, choose "Anywhere-IPv4" for each rule.

   <figure><img src="/files/oTglstztXJ7fttFd1Xo0" alt=""><figcaption></figcaption></figure>
5. Click on "Save rules", and you will successfully configure the firewall.<br>

   <figure><img src="/files/dBWcNFicQjNqSvdy568B" alt=""><figcaption></figcaption></figure>

### Step 4: Access Your VPS

1. Go back to the instance list, select the instance you just created, and click on "connect" button. You will enter the "Connect to instance" page.<br>

   <figure><img src="/files/obedoGitbcf2dAPJPQAW" alt=""><figcaption></figcaption></figure>
2. Click on "Connect" button in this page and wait for several seconds.<br>

   <figure><img src="/files/QdGZqPv7BQUNI8HWNPS2" alt=""><figcaption></figcaption></figure>
3. You are now connected to your VPS!

### Conclusion

That's it! You've successfully set up a VPS on Amazon Web Services platform, installed Ubuntu server with necessary firewall configuration.

{% hint style="info" %}
Should you encounter any issues or have questions, don't hesitate to seek support from the SendingNetwork [community](https://t.me/SendingNetworkOfficial/1).
{% endhint %}
