# Create EC2 Instance Guide

![Launch EC2 Instance](https://cdn.hashnode.com/res/hashnode/image/upload/v1728302828575/377f0d1d-8655-44dd-8baf-7736adb1f99f.png?w=1600\&h=840\&fit=crop\&crop=entropy\&auto=compress,format\&format=webp)

### Launch EC2 Instance

#### Tasks <a href="#heading-tasks" id="heading-tasks"></a>

* For this task, create an EC2 instance with following requirements:

  1\) The name of the instance must be `xfusion-ec2`.

  2\) You can use the `Amazon Linux` AMI to launch this instance.

  3\) The Instance type must be `t2.micro`.

  4\) Create a new RSA key pair named `xfusion-kp`.

  5\) Attach the default (available by default) security group.

#### Steps <a href="#heading-steps" id="heading-steps"></a>

1. Go to ec2 and you will get instance, let’s start to launch instance now
2.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303471824/b2354f1f-1036-45f6-8373-9e5b86869fef.png?auto=compress,format\&format=webp)
```

```
Now name the instance `xfusion-ec2` and choose Amazon Linux AMI with Virtual server type (instance type)

t2.micro
```

3\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303605367/a4a7ef64-9127-4e2b-a2ad-8c0c451ae2a5.png?auto=compress,format\&format=webp)

Create a RSA key pair as given name
```

4\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303735385/a5b731a4-9613-465d-b41f-3721d2306c0c.png?auto=compress,format\&format=webp)

Our instance is successfully created and is on running state now

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303872831/4922f475-b378-44a2-b1a7-11b18b0caa68.png?auto=compress,format\&format=webp)

\#happylearning

\#ec2instances

\#aws
```
