Building Basic AWS Cloud Infrastructure Using AWS CLI
Finally , I completed task 3 of ARTH and task 1 of AWS_CSA , given by Vimal Sir.
AWS CLI :
The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
Task Description — AWS 👨🏻💻
🔅 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.
Solution :
- To check that AWS CLI is successfully installed or not , use this command :
2. Now , to configure the IAM-User profile use this command :
aws configure
3. Create a key pair :
Now , to create key pair using CLI , use this command :
aws ec2 create-key-pair --key-name arthkey
then key is created , you can check it in
AWS console => EC2 => Key pairs
4. Create a security group :
Now , to create security group :
A security group acts as a firewall for your instance to control inbound and outbound traffic and protect your instance from attacks.
5. Launch an instance using the above created key pair and security group.
Now we have to launch the instance which uses the same key-pair (for remote login) and same security group which we created above.
then , Instance is created .
6. Create an EBS volume of 1 GB.
Now we have to create the volume from AWS CLI.
7. The final step is to attach the above created EBS volume to the instance you created in the previous steps.
Now we have to attach the volume from AWS CLI.
Now , volume is attached to the instance that we have created.
so , task is successfully completed !!
THANK YOU !!