✨ Create a key pair
→ Lets first discuss about the key pair ….Key pair have two keys one public key and second one is private key, which are used at the time to access the instances for credentials instead password. Amazon stores the public key and we store the private key…
🔅 Create a security group
It is like an firewall which will controls the incoming and outgoing traffic.. Like here we have allowed the ssh for my public only and ping(ICMP) to all the traffics..
🔅 Launch an instance using the above created key pair and security group.
→ Lunched an instance(with aws_linux AMI) by the help Created Key Par and Security Group which we have created .
🔅 The final step is to attach the above created EBS volume to the instance you created in the previous steps.
→ First Lets Talk about EBS Volume :
EBS( Elastic Block Service) an volume service which is a block level storage device then we can attach to Instance . So, that we can save the precious data and whenever our machine goes down by some problem the data is safe so that we can detaches the EBS and used in new machine.
It also have an service of snapshot which will help us to take the backup of the data day -by- day. We can also use it as a primary storage also. Whenever we lunch the ec2 by default aws attaches the EBS at time of configuration..
Now, we need to we need to formate it in the some type which supported by our OS (like ext4, ext3, xfs , zfs etc)