Instead of creating a new Glue crawler database, I want to use an existing one here:
resource "aws_glue_crawler" "test" {
name = "test"
description = "Crawls S3 buckets and updates the Glue Catalog tables"
role = data.aws_iam_role.integration.arn
database_name = "existing_db"
Instead of typing the database_name manually, I want to import it like I am doing with the aws iam role. How can I achieve this?
The following won’t work
data "aws_glue_catalog_database" "existing_db" {
name = "existing_db"
}
because
The provider hashicorp/aws does not support data source "aws_glue_catalog_database".