AWS Test Server

http://soundarya.tactii.com/

AWS console go to Instance and instance running after that create launch instance as ubuntu and create key pair , click launch instance.

After instance id created click connect and in a SSH client copy 3 commands and paste in a git bash.

In security groups, click edit inbound and change SSH source as IP and Add rule for HTTP source as custom .

Add rule for another custom TCP and set port as 3011 and source as custom.

After that change the location in git bash:

ls /c/USers/admin/Downloads
cp /c/USers/admin/Downloads/abc-key.pem ~/tact/.creds/.
ls ~/tact/.creds/

Generate SSH Key in Git Bash:

After click connect and SSH client copy these 3 commands and paste in a Git bash,

chmod 400 "abc-key.pem"
ec2-18-218-109-154.us-east-2.compute.amazonaws.com
ssh -i "abc-key.pem" ubuntu@ec2-18-218-109-154.us-east-2.compute.amazonaws.com

Generate SSH Key:

ssh-keygen -t rsa -b 4096 -C "ubuntutest@gmail.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub

After SSH key generated copy the SSH key and paste it in a Git Hub create new SSH and paste the key.

In AWS console, search Route 53, and click Hosted Zones and enter name and Ip address and Create record and save changes.

In git bash, create new repository

After repository created install python and run the code

After the installation of python run the code and check whether it is running or not

Run the command in a browser and change the URL with Public IPv4 address given in AWS console.For example,

Run the URL in your browser like this

In nginx, should create the command run the command like this,for example

Last updated