AWS CLI
-Create a key pair
-Create a security group
-Launch an instance using the above created key pair and security group.
-Create an EBS volume of 1 GB.
The final step is to attach the above created EBS volume to the instance you created in the previous steps.
1>To create a key Pair in CLI mode
The key pair has been created in AWS as shown below
When launched, Amazon EC2 instances must be associated with a security group, which acts as a stateful firewall. You have complete control over the network traffic entering or leaving the security group, and you can build granular rules that are scoped by protocol, port number, and source/destination IP address or other security groups. By default, all egress traffic from the security group is permitted. However, ingress traffic must be configured to allow the appropriate traffic to reach your instances.
2>Create a security Group
Security group is created in AWS as shown below
Ingress traffic rules to the security group is shown below
Now we can see this in our GUI AWS.
Now,we will create an ec2 instance using the same key-pair and security group
Now we can check if the instance started running in AWS webUI
Next step is to create the EBS volume of 1 GB
To attach EBS volume with instance
Voila...Attached!!!
Amazing write-up!
nice work👌🏻