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.
Create a VM and configure security groups with defined Inbound and Outbound rules like letting traffic through HTTP, ICMP, TCP,SSL(TLS). Steps:- 1. Go to AWS console and create a new EC2 instance. 2. Create a new security group. 3. Create an inbound rule on TCP on my IP. 4. Create an inbound rule on ICMP on source my IP. 5. Similarly set rules for HTTP and SSH. 6. set the outbound traffic for http, ssh and icmp. 10. create the security group. 11. use the same security group in the network settings and launch the instance.
Comments
Post a Comment