provider/aws: Log ElasticCache subnet removal
This commit is contained in:
parent
2a09941f76
commit
1624c7e27f
|
@ -89,6 +89,7 @@ func resourceAwsElasticacheSubnetGroupRead(d *schema.ResourceData, meta interfac
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "CacheSubnetGroupNotFoundFault" {
|
if ec2err, ok := err.(awserr.Error); ok && ec2err.Code() == "CacheSubnetGroupNotFoundFault" {
|
||||||
// Update state to indicate the db subnet no longer exists.
|
// 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("")
|
d.SetId("")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue