0% found this document useful (0 votes)
57 views1 page

Setting Up The Remote Machine On AWS: Deployment

1. Choose an Ubuntu Server 18.04 LTS AMI and t2.micro instance type on AWS. Select 8 GB of General Purpose SSD storage. 2. Configure security groups to allow HTTP on port 80, custom TCP on port 8000, and custom TCP on port 5000 from any IP. 3. Download the key pair, give it proper permissions, and use it to SSH into the instance using its public IP address.

Uploaded by

Sandeep Dwivedi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

Setting Up The Remote Machine On AWS: Deployment

1. Choose an Ubuntu Server 18.04 LTS AMI and t2.micro instance type on AWS. Select 8 GB of General Purpose SSD storage. 2. Configure security groups to allow HTTP on port 80, custom TCP on port 8000, and custom TCP on port 5000 from any IP. 3. Download the key pair, give it proper permissions, and use it to SSH into the instance using its public IP address.

Uploaded by

Sandeep Dwivedi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Deployment

Setting up the remote machine on AWS


1. Choose an amazon machine image(AMI) to deploy. (We will be choosing an ubuntu
server 18.04 LTS)
2. Choose an instance type depending on your needs. All instances type will show
some information about the hardware configured in the instance when hovered upon.
(We will be choosing a t2.micro instance for our project).
3. In the next step, we will be asked to configure the instance. For now, we can skip the
configuration.
4. Now in the next step choose the size and type of storage you want. (We will be
selecting 8 GB of General Purpose SSD).
5. You can skip adding tags for now. (A tag is a label that you or AWS assigns to an
AWS resource. Each tag consists of a key and a value. For each resource,
each tag key must be unique, and each tag key can have only one value. You
can use tags to organize your resources.)
6. In the configure security group section click on add rules.
7. Add HTTP rule for port 80, custom tcp for port 8000 and finally custom tcp for
port 5000 accessible from anywhere.
8. Review the instance you have just created and download the key pair.
9. Launch the Instance.
10. Give necessary permissions using the chmod 600 { pem file }.
For e.g. chmod 600 /Download/codeial-prod.pem
11. Login to the server using the pem file downloaded, using the command.
(Windows user can go through the link
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html for
logging in to the machine using PuTTY).
12. ssh -i {pem file} @ubuntu{ IP address of the machine }.
For e.g. ssh -i /Download/codeial-prod.pem [email protected]
13. Now setup your project into the remote machine.
14. Install all the dependencies using npm install
15. Set up the environment variables.

Installing Redis-server
sudo apt-get install redis-server

Installing Nginx
sudo apt-get install nginx

For configuring nginx, go through the link


https://medium.com/@utkarsh_verma/configure-nginx-as-a-web-server-and-reverse-
proxy-for-nodejs-application-on-aws-ubuntu-16-04-server-872922e21d38

You might also like