

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 釋出彈性 IP 位址
<a name="using-instance-addressing-eips-releasing"></a>

如果您不再需要彈性 IP 位址，我們建議您將其釋出。要發行的彈性 IP 地址目前不得與 AWS 資源相關聯。

------
#### [ Console ]

**釋出彈性 IP 位址**

1. 在 [https://console.aws.amazon.com/ec2/](https://console.aws.amazon.com/ec2/) 開啟 Amazon EC2 主控台。

1. 在導覽窗格中，選擇 **Elastic IPs (彈性 IP)**。

1. 選取要釋出的彈性 IP 位址，然後依序選取 **Actions (動作)**、**Release Elastic IP addresses (釋出彈性 IP 位址)**。

1. 選擇 **Release (釋出)**。

------
#### [ AWS CLI ]

**釋出彈性 IP 位址**  
使用 [release-address](https://docs.aws.amazon.com/cli/latest/reference/ec2/release-address.html) AWS CLI 命令。

```
aws ec2 release-address --allocation-id eipalloc-64d5890a
```

------
#### [ PowerShell ]

**釋出彈性 IP 位址**  
使用 [Remove-EC2Address](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2Address.html) cmdlet。

```
Remove-EC2Address -AllocationId eipalloc-64d5890a
```

------

如果您釋出您的彈性 IP 位址，您也許能夠予以復原。適用的規定如下：
+ 如果彈性 IP 位址已配置給其他 AWS 帳戶，或復原之後會導致您超過彈性 IP 位址限制，則您無法復原此彈性 IP 位址。
+ 您無法復原與彈性 IP 位址相關聯的標籤。

------
#### [ AWS CLI ]

**復原彈性 IP 位址**  
使用 [allocate-address](https://docs.aws.amazon.com/cli/latest/reference/ec2/allocate-address.html) 命令。

```
aws ec2 allocate-address \
    --domain vpc \
    --address 203.0.113.3
```

------
#### [ PowerShell ]

**復原彈性 IP 位址**  
使用 [New-EC2Address](https://docs.aws.amazon.com/powershell/latest/reference/items/New-EC2Address.html) cmdlet。

```
New-EC2Address `
    -Address 203.0.113.3 `
    -Domain vpc `
    -Region us-east-1
```

------