13 lines
488 B
HCL
13 lines
488 B
HCL
resource "aws_glue_catalog_database" "datalake_db_processed_zone" {
|
|
name = "datalake_processed_878695318857_ek_1201695"
|
|
}
|
|
resource "aws_glue_crawler" "glue_crawler_raw_zone" {
|
|
database_name = aws_glue_catalog_database.datalake_db_raw_zone.name
|
|
name = "gc-raw-878695318857-ek-1201695"
|
|
role = var.lab_role_arn
|
|
table_prefix = "crawler_"
|
|
s3_target {
|
|
path = "s3://${aws_s3_bucket.raw_bucket.bucket}/raw-zone/stockdata/"
|
|
}
|
|
tags = merge(local.common_tags, )
|
|
} |