From 1624c7e27f542e1aacf597720943cb43703ac2ec Mon Sep 17 00:00:00 2001 From: clint shryock Date: Wed, 8 Jun 2016 13:35:49 -0500 Subject: [PATCH] provider/aws: Log ElasticCache subnet removal --- builtin/providers/aws/resource_aws_elasticache_subnet_group.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_elasticache_subnet_group.go b/builtin/providers/aws/resource_aws_elasticache_subnet_group.go index 516528693..af684af42 100644 --- a/builtin/providers/aws/resource_aws_elasticache_subnet_group.go +++ b/builtin/providers/aws/resource_aws_elasticache_subnet_group.go @@ -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 }