Defines an AWS Glue Crawler for catalog targets with schema change policies.

Terraform Template

resource "aws_glue_crawler" "example" {

  catalog_target {
    database_name = "aws_glue_catalog_database.example.name"
    tables = ["aws_glue_catalog_table.example.name"]
  }
  configuration = <<-EOF
    {
     "Version":1.0,
     "Grouping": {
     "TableGroupingPolicy": "CombineCompatibleSchemas"
     }
    }
    
  EOF
  database_name = "aws_glue_catalog_database.example.name"
  name = "example"
  role = "aws_iam_role.example.arn"

  schema_change_policy {
    delete_behavior = "LOG"
  }
}