Launch instances via CLI(Command line interface) & Attaching EBS.

| Description:-

| WHAT IS CLI ?

| WHY AWS CLI ?

| INSTALLING AND CONFIGURING AWS CLI

|Step 1 :- Install AWS CLI

aws — version

|Step 2 :- Login with AWS Console

| Now, What is IAM ?

|Step 3 :- Create User in IAM

1st click on User after that Add user
Provides the details which you want
Click on Attach existing policies directly
Select PowerUserAccess
Give the name of key
Overview
Access key & Secret key

| Step 4 :- AWS Configure

From here we can see the locaton

|STEP 5 :- Create a Key Pair

| We can also go to AWS GUI for checking key is successfully created or not.

Click on key Pairs

| Step 6 :- Create a Security Group

aws ec2 create-security-group --group-name MySecurityGroup --description mysecurity-group

| The security group has created with no rules

For SSH - aws ec2 authorize-security-group-ingress --group-id sg-0e9ec2437e6c615ff --protocol tcp --port 22 --cidr 0.0.0.0/0For HTTP - >aws ec2 authorize-security-group-ingress --group-name mysecuritygroup --protocol tcp --port 80 --cidr 0.0.0.0/0
For-SSH
For-HTTP

|Launching an instance using the above created key pair and security group.

aws ec2 run-instances --image-id ami-173d747e --count 1 --instance-type t1.micro --key-name MyKeyPair --security-groups my-sg
Press space for next / down

| Step 7 :- Create an EBS volume of 1 GB

Hy! I am a student of BCA. I am here for keeping my knowledge for everyone. What I learn What I want to learn all the things I am getting here.