How Launch/Create AWS Instances using AWS CLI with some Basic Steps?

What is AWS Cloud ?

AWS Cloud

Amazon web service is a platform that offers flexible, reliable, scalable, easy-to-use and cost-effective cloud computing solutions.

AWS is a comprehensive, easy to use computing platform offered Amazon. The platform is developed with a combination of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings.

Step1: Create key pair

aws ec2 create-key-pair — key-name <value>

Step2: Create Security Group

aws ec2 create-security-group — group-name <value> — description “<value>”

Step3: Launch EC2 Instances

aws ec2 run-instances — image-id <value> — instance-type <value>— count <value>— subnet-id <value> — key-name <value> — security-group-ids <value>
— tag-specification ResourceType=<value>,Tags=[{Key=<value>,Value=<value>}] ResourceType=<value>,Tags=[{Key=<value>,Value=<value>}]

Step4: Create EBS of 1 GB

aws ec2 create-volume — volume-type <value> — size <value> — availability-zone <value> — tag-specification ResourceType=volume,Tags=[{Key=<value>,Value=EBS}]

Step5: Attach EBS Volume to the instance

aws ec2 attach-volume — volume-id <value> — instance-id <value> — device <value>

AWS is one of the best Cloud platform by Amazon which provides various services as per your requirements.

Thank You

Stay Safe and Keep Learning




Mr. Engineer, Technical Content Writer, Love to Share knowledge

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What is a Schema in SQL and how to create it?

Why Is Laravel the Best PHP Framework for Web Apps development

If Sorting Algorithms Were Pokemon

Java static keyword

Spring Boot Cache Implementation for Database Operations

I am a programmer

Nginx Solution Was Not Found

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yugal Choubisa

Yugal Choubisa

Mr. Engineer, Technical Content Writer, Love to Share knowledge

More from Medium

Upcoming Opportunities with Per Scholas (Free Tech Training) — Info Sessions 4/7 & 4/21

Best Advanced DevOps Project Ideas

Task 5: How to configure EC2, EBS, and S3 in AWS using AWS CLI

AWS Lambda