Skip to content

Commit

Permalink
ec2: add a way to disassociate classic EIPs
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Oct 18, 2014
1 parent e480231 commit db36e88
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ec2/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,20 @@ func (ec2 *EC2) DisassociateAddress(id string) (resp *SimpleResp, err error) {
return
}

// Disassociate an address from a VPC instance.
func (ec2 *EC2) DisassociateAddressClassic(ip string) (resp *SimpleResp, err error) {
params := makeParams("DisassociateAddress")
params["PublicIp"] = ip

resp = &SimpleResp{}
err = ec2.query(params, resp)
if err != nil {
return nil, err
}

return
}

// DescribeAddresses returns details about one or more
// Elastic IP Addresses. Returned addresses can be
// filtered by Public IP, Allocation ID or multiple filters
Expand Down

0 comments on commit db36e88

Please sign in to comment.