provider/aws: Log ElasticCache subnet removal

pull/7086/head
clint shryock 10 years ago
parent 2a09941f76
commit 1624c7e27f

@ -89,6 +89,7 @@ func resourceAwsElasticacheSubnetGroupRead(d *schema.ResourceData, meta interfac
if err != nil {
if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "CacheSubnetGroupNotFoundFault" {
// Update state to indicate the db subnet no longer exists.
log.Printf("[WARN] Elasticache Subnet Group (%s) not found, removing from state", d.Id())
d.SetId("")
return nil
}

Loading…
Cancel
Save