diff --git a/aws/resource_aws_glue_crawler.go b/aws/resource_aws_glue_crawler.go index 8d7e16adc25..6b96ea65bb7 100644 --- a/aws/resource_aws_glue_crawler.go +++ b/aws/resource_aws_glue_crawler.go @@ -22,7 +22,6 @@ func resourceAwsGlueCrawler() *schema.Resource { Read: resourceAwsGlueCrawlerRead, Update: resourceAwsGlueCrawlerUpdate, Delete: resourceAwsGlueCrawlerDelete, - Exists: resourceAwsGlueCrawlerExists, Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, @@ -662,20 +661,3 @@ func resourceAwsGlueCrawlerDelete(d *schema.ResourceData, meta interface{}) erro } return nil } - -func resourceAwsGlueCrawlerExists(d *schema.ResourceData, meta interface{}) (bool, error) { - glueConn := meta.(*AWSClient).glueconn - - input := &glue.GetCrawlerInput{ - Name: aws.String(d.Id()), - } - - _, err := glueConn.GetCrawler(input) - if err != nil { - if isAWSErr(err, glue.ErrCodeEntityNotFoundException, "") { - return false, nil - } - return false, err - } - return true, nil -}