- Clone this project
git clone https://github.com/Omkar0114/AWS.git
- Open your terminal
go inside your cloned project directory using
cd
Run following command:
go run main.go
- Initialise and start the project Open your browser on
localhost:8080
- Create an IAM user & login to your AWS Console
- Access Type - Password
- Permissions - Admin
- Create an EC2 instance
- Select an OS image - Ubuntu
- Create a new key pair & download
.pem
file - Instance type - t2.micro
- Connecting to the instance using ssh
ssh -i instance.pem ubunutu@<IP_ADDRESS>
- Updating the outdated packages and dependencies
sudo apt update
- Install Git - Guide by DigitalOcean
- Clone this project in the remote VM
git clone https://github.com/Omkar0114/AWS.git
- Open your terminal
go inside your cloned project directory using
cd
Run following command: You need to install golang first, on the Remote VM To install golang, follow this guide Or you can use this command to install golang on Ubuntu
sudo apt install golang-go
To check if golang is installed or not, run this command
go version
Now run this command to run the project
go run main.go
- Initialise and start the project Open your browser on
alloted IPv4 address of EC2 instance:8080
NOTE - We will have to edit the inbound rules in the security group of our EC2, in order to allow traffic from our particular port