Skip to content

Commit

Permalink
Merge pull request #3653 from terraform-providers/b-aws_eip_associati…
Browse files Browse the repository at this point in the history
…on-notfound

resource/aws_eip_association: Prevent deletion error InvalidAssociationID.NotFound
  • Loading branch information
bflad authored Mar 8, 2018
2 parents 52e2469 + bbad41f commit f84079d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/resource_aws_eip_association.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ func resourceAwsEipAssociationDelete(d *schema.ResourceData, meta interface{}) e

_, err := conn.DisassociateAddress(opts)
if err != nil {
if isAWSErr(err, "InvalidAssociationID.NotFound", "") {
return nil
}
return fmt.Errorf("Error deleting Elastic IP association: %s", err)
}

Expand Down

0 comments on commit f84079d

Please sign in to comment.