> 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)

Set Up a VPS on Amazon Web Services (AWS) and Install Ubuntu for SendingNetwork Testnet Mining

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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FJgorU2u7juG3lmfUyr5m%2FScreen%20Shot%202024-03-29%20at%207.06.36%20AM.png?alt=media&amp;token=fa151ce7-6a9f-4782-84e6-ee12a7fb3123" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FjEoOJlFEJM7ALUnxt6e6%2FScreen%20Shot%202024-03-29%20at%207.08.07%20AM.png?alt=media&amp;token=6844ab5e-8538-44f7-84cf-2e15be409dcd" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FnNcud6nshZMzn5XRe6ha%2FScreen%20Shot%202024-03-29%20at%207.09.12%20AM.png?alt=media&amp;token=15aea837-b3ce-48dd-b2a0-c528d5bb27a4" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2F8P4fIcHMRKbLPhD0DJ9Q%2FScreen%20Shot%202024-03-29%20at%207.19.29%20AM.png?alt=media&amp;token=79c4a3b4-03a8-4c04-b090-7ea79ac05125" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FvWJiq7VsoMXPJ7QOa1kd%2FScreen%20Shot%202024-03-30%20at%2012.43.31%20AM.png?alt=media&amp;token=1ebdcd1a-fdc6-403a-8c53-6d024ee7bc91" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FfsxymAqSWrq2LtNRioMG%2FScreen%20Shot%202024-03-30%20at%2012.43.46%20AM.png?alt=media&amp;token=59c3b099-e91b-4f75-9242-9b6e642ab406" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2F58whYWt2XpoikN4o1CGR%2FScreen%20Shot%202024-03-29%20at%207.39.30%20AM.png?alt=media&amp;token=30455d1e-3bdb-44bf-96af-c6e42b8f4ff0" alt=""><figcaption></figcaption></figure>
9. In the "Configure storage" section, please set up 200 GB of storage.<br>

   <figure><img src="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FSUtb5YJq5fN39IPa63gy%2FScreen%20Shot%202024-03-29%20at%207.35.52%20AM.png?alt=media&amp;token=c9d74c0d-74ab-4739-910b-2784d1a8ee0b" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FMcLoIIII9TC8g9HjvalP%2FScreen%20Shot%202024-03-29%20at%207.40.36%20AM.png?alt=media&amp;token=e16dee90-c4b7-4271-b028-0d6e47a849ab" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2F4V3H0elYLAmpvtColsWb%2FScreen%20Shot%202024-03-30%20at%201.05.20%20AM.png?alt=media&amp;token=d09b583a-c53a-4d2b-9048-aabb782588f3" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FMZJL6uxKP5oxfKSe5QGy%2FScreen%20Shot%202024-03-30%20at%201.06.52%20AM.png?alt=media&amp;token=d74bd3bc-9df4-4664-958e-15a2b2fa605b" alt=""><figcaption></figcaption></figure>
3. After you enter the page of the specific Security Groups, click on "Edit inbound rules".<br>

   <figure><img src="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FdGtmMXjA7aBI5qd5RbV1%2FScreen%20Shot%202024-03-30%20at%201.07.29%20AM.png?alt=media&amp;token=2e14d224-6404-401d-a7ed-6a71afca2868" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2Fd74vmOAKHDejnTMnBFPR%2FScreen%20Shot%202024-03-30%20at%201.10.35%20AM.png?alt=media&amp;token=8592d721-2fb7-4465-9cd4-a2953ac65262" alt=""><figcaption></figcaption></figure>
5. Click on "Save rules", and you will successfully configure the firewall.<br>

   <figure><img src="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FNWdc0wSnwAopW3iZAfqS%2FScreen%20Shot%202024-03-30%20at%201.10.57%20AM.png?alt=media&amp;token=eddd5c27-a283-4ca3-8e76-ecedb56b7705" 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="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FbybAjNMe7NOPV3UUrJrv%2FScreen%20Shot%202024-03-29%20at%207.46.01%20AM.png?alt=media&amp;token=de275fb5-616a-4e3d-afca-335937ff9271" alt=""><figcaption></figcaption></figure>
2. Click on "Connect" button in this page and wait for several seconds.<br>

   <figure><img src="https://2753396368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1hPSqZauZ9JZ15UAJezj%2Fuploads%2FvJdX4ahBVlE3qyPDfZML%2FScreen%20Shot%202024-03-29%20at%207.47.32%20AM.png?alt=media&amp;token=d1d3df27-6f2c-4980-ad3e-1368c957241d" 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 %}
