Using CLI(Command Line Interface) to ...
Nitin Tilwani
Serving Notice Period | SDE@ DevOps engineer at Nykaa | Python | RHCSA | Docker | Kubernetes | Ansible | AWS | Kong || RHCE Certified
?? Create a key pair
create-key-pair --key-name MyAWSKey
?? Create a security group
aws ec2 create-security-group --group-name Myfirewall --description "My firewall security group"
?? Launch an instance using the above created key pair and security group.
aws ec2 run-instances --image-id ami-0e306788ff2473ccb --count 1 --instance-type t2.micro --key-name MyAWSKey --security-group-ids sg-0a53e43dca6459a80
?? Create an EBS volume of 1 GB.
aws ec2 create-volume --volume-type gp2 --size 1 --availability-zone ap-south-1b
?? The final step is to attach the above created EBS volume to the instance you created in the previous
aws ec2 attach-volume --volume-id vol-025642fda942cbf90 --instance-id i-0a3be4e04f181de0a --device /dev/sdf
Software Engineer @ FinSpectra | Platform Developer-1 Certified Salesforce Developer | Salesforce QA Tester
4 年Well done Nitin????????