---
title: "Discussion on \"Creating an EC2 instance on AWS using AWSCLI\" | Hashnode"
description: "Discussion on \"Creating an EC2 instance on AWS using AWSCLI\". Install AWSCLI\nsudo apt update\ncurl \"https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip\" -o \"awscliv2.zip\"\nunzip awscliv2.zip\n\nNote: if unzip command not installed\n\nsudo apt install unzip\n\nCreate Key pair\naws ec2 create-key-pair --key-name MyKe..."
url: "https://hashnode.com/posts/creating-an-ec2-instance-on-aws-using-awscli/6555ce078896f1d2c6df3e6c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating an EC2 instance on AWS using AWSCLI](https://madhup.hashnode.dev/creating-an-ec2-instance-on-aws-using-awscli?utm_source=hashnode&utm_medium=feed)

Install AWSCLI sudo apt update curl "https://awscli.amazonaws.com/awscli-exe-linux-x86\_64.zip" -o "awscliv2.zip" unzip awscliv2.zip Note: if unzip command not installed sudo apt install unzip Create Key pair aws ec2 create-key-pair --key-name MyKe...

Nov 15, 2023 · 1 min read · madhup.hashnode.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-cli](https://hashnode.com/tag/aws-cli)
-   [#cloud](https://hashnode.com/tag/cloud)
-   [#trainwithshubham](https://hashnode.com/tag/trainwithshubham)

## Written by

[Madhup Pandey](https://hashnode.com/@Madhup2908)

@Madhup2908 · Nagpur, India

  
[View profile](https://hashnode.com/@Madhup2908)

DevOps Engineer

Senior DevOps Engineer at Sunfire technologies private limited

## Responses 1

Markdown supported · ⌘↵ to post

[Deepika Pandey](https://hashnode.com/@dpdeep254)

[Dec 15, 2023](https://hashnode.com/posts/creating-an-ec2-instance-on-aws-using-awscli/6555ce078896f1d2c6df3e6c/comment/657c9bc9f7ee9350b5c920e2)

It is a very nice article to understand.and it is very helpful to us.
