Using CLI of AWS=>Key-pair, Security-groups_along_with_rules, EBS-creation&attaching_to_instance #Task3_ARTH
Pradeep K.
Strategic Operations Leader | Proactive Negotiator | Team Dynamics Expert | Applying Computer Science for Seamless Client Relationships and Actionable Leadership
Lets see introduction of AWS, its services & its ability to access it via CLI as well as WebGUI.
Introduction:
Amazon Web Services(AWS) is a cloud service from Amazon, which provides services in the form of building blocks, these building blocks can be used to create and deploy any type of application in the cloud.
These services or building blocks are designed to work with each other, and result in applications that are sophisticated and highly scalable
Services used on AWS:
Each type of service in this “What is AWS” blog, is categorized under a domain, the few domains which are widely used are:
- Compute
- Storage
- Database
- Migration
- Network and Content Delivery
- Management Tools
- Security & Identity Compliance
- Messaging
ALL the SERVICES in AWS:
Storage Services
The Storage domain includes services related data storage, it includes the following services:
- S3 (Simple Storage Service)
- Elastic Block Store
- Amazon Glacier
- AWS Snowball
Security & Identity, Compliance Services
The Security & Identity, Compliance domain consist of services which are used to manage to authenticate and provide security to your AWS resources. It consists of the following services:
- AWS IAM
- AWS KMS
- AWS Shield
Compute Services
The Compute domain includes services related to compute workloads, it includes the following services:
- EC2 (Elastic Compute Cloud)
- Lambda
- Elastic Beanstalk
- Amazon LightSail
We can setup the instance by attaching security-groups and key-pair for authentication
Step-1:
Create the Key-pairs with the CLI of AWS in the Windows OS
aws ec2 create-key-pair --key-name Arthtask3k
ow we have Created the key-pair we can check from the GUI:
Step-2:
Create the security-group via CLI AWS in Windows OS
aws ec2 create-security-group --group-name ArthSecurityGroup --description "yOur choice" --subnet-id "YOUR_SUBNET_id"
Security Group is created for now lets check it.
We have to give the in-bound rules for every security-group
$ aws ec2 authorize-security-group-ingress --group-id sg-903004f8 --protocol tcp --port 3389 --cidr 0.0.0.0/24
Step-3:
Now launch the instance with #created_key-pair & Security-group in CLI
$ aws ec2 run-instance help
Now we will create the instance
Step-4:
Attaching the volume EBS Elastic-Block-Storage with 20GiB
$ aws ec2 create-volume help
Creation of EBS:
Now lets attach the EBS volume to the instances(either one of it):
we can check it via CLI by #aws ec2 describe-volumes
Finally attached the EBS to the Instance
We can check the GUI as well.
We can now extend the EBS volume to the PEN_DRIVE in our system..!!!
Any Queries on the Task and any error on your end can approach me..
Will be back by the new additions in this TASK-iii
Now we proceed for the Creation of S3 using CLI:
> aws s3 cp K:/cern1.jpg s3://pradeephadoop/P1.jpg --acl public-read-write (_With All the Public Access Given to watch by the URL who has it_) > aws s3 mb s3://pradeephadoop --region ap-south-1 > aws s3 cp K:/cern1.jpg s3://pradeephadoop/P1.jpg
Next Comes the CloudFront Creation on CLI..!!!
??????Keep Learning , Keep Doing ??????
?????? Thank you for Reading ...??????
Full Stack Developer at Hexaware || Java || Angular || Spring Boot || Devops || 5x Cloud Certified
4 年Supperrb