# Assign Elastic IP to EC2 Instance

### Table of contents

* [Tasks](https://abisec.gitbook.io/devsecops/aws/broken-reference)
* [Steps](https://abisec.gitbook.io/devsecops/aws/broken-reference)

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

* There is an instance named `xfusion-ec2` and an elastic-ip named `xfusion-ec2-eip` in `us-east-1` region. Attach the `xfusion-ec2-eip` elastic-ip to the `xfusion-ec2` instance.

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

1. We have Elastic IP addresses.
2.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728308204736/b258851c-3318-4377-acdb-8d81ac7c124e.png?auto=compress,format\&format=webp)
```

```
Follow this steps : [EC2](https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Home:) → [Elastic IP addresses](https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Addresses:) → **Associate Elastic IP address**
```

3\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728308520542/2f1c86f9-1949-4e32-b907-83c7aef05bec.png?auto=compress,format\&format=webp)

Allocate running instance and assocate now.
```

4\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728308542250/3d136a98-90ac-4376-bbb2-41abefd14d28.png?auto=compress,format\&format=webp)

**Elastic IP address associated successfully.**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728308627798/4534866a-8ec0-4bc9-adb5-56a6dda07a16.png?auto=compress,format\&format=webp)
```

AWSAmazon Web ServicesCloudCloud Computing
