Create EC2 Instance in AWS Step 1:Login to your AWS Management Console and open EC2 instance. Step 2:Click Launch Instance Step 3:The default Application and OS images which is eligible for free tier is chosen. Step 4:The instance type which is eligible for free tier is chosen. Step 5:Create 1 instance and click launch instance Step 6:Create new key pair and download the security key PEM file Step 7:Launching Instance Step 8:Instance successfully launched. Step 9: EC2 is created. Step 10:Summary of created instance. Step 11:Terminate Instance Step 12:Termination Successful
Installing and attaching MYSQL database to EC2 instance Steps: 1. Make sure you have one EC2 instance running that you can access it from your terminal. 2. Switch to root mode and move to root directory sudo su cd / 3. Update existing packages. sudo apt-get update 4. Now install mysql server. sudo apt-get install mysql-server 5. Now run command for secure installation. sudo mysql_secure_installation 6. Give appropriate password 7. If password is not accepted you can access mysql as sudo then alter the user password 8. Now we can interact with databases.
Hosting Web application using Amazon Elastic Beanstalk Steps: 1. Search for elastic beanstalk in AWS console. 2. Give name to your application. 3. Select node js as platform, then create application. 4. Application creation under progress 5. Successfully deployed 6. Open the link
Comments
Post a Comment