Arth task3-AWS Cloud using 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.
What is 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.
To use AWS Cloud through CLI only Prerequisite is to Install the AWS CLI SDK tool.
Step:1 Create an IAM user
Programmatic Access for CLI and AWS Management Console access for WEBUI
Set Permissions to the user:
Power User access has the power for all services except the billing account and IAM.
Administration access has the power for all services except the billing account.
Successfully user is created
Step-2: Download AWS CLI Software and edit the Environment variable
Step-3: Open the command prompt and do the following steps
Enter the access ID and Secret ID and Availability zone
- >>Create a key pair
>> Create a Security group
>>3.Launch an instance using the above created key pair and security group.
aws ec2 run-instances help aws ec2 run-instances --security-group-ids g_id --instance-type _type --image-id ami_id --key-name key_name --count no_of_instance
4.>>Create an EBS volume of 1 GB.
After the EC2 instance launch, we can create an EBS volume, and then we have to attach it command for it is first created then attachment and then detachment of EBS with instances.
Attach Volume to the ec2 instance
>>Stop and Terminate Instance
In this way, I successfully completed the TASK-3 of ARTH.