Skip to content

Commit 437e74a

Browse files
committed
NRL-1187 update glue source path and iam role for crawler
1 parent 71816b2 commit 437e74a

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

terraform/account-wide-infrastructure/modules/glue/glue.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ resource "aws_glue_job" "glue_job" {
4949
"--enable-auto-scaling" = "true"
5050
"--enable-continous-cloudwatch-log" = "true"
5151
"--datalake-formats" = "delta"
52-
"--source_path" = "s3://${aws_s3_bucket.target-data-bucket.id}/" # Specify the source S3 path
52+
"--source_path" = "s3://${aws_s3_bucket.source-data-bucket.id}/" # Specify the source S3 path
5353
"--target_path" = "s3://${aws_s3_bucket.target-data-bucket.id}/logs" # Specify the destination S3 path
5454
"--job_name" = "poc-glue-job"
5555
"--enable-continuous-log-filter" = "true"

terraform/account-wide-infrastructure/modules/glue/iam.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,21 @@ data "aws_iam_policy_document" "glue_service" {
5353

5454
effect = "Allow"
5555
}
56+
57+
statement {
58+
actions = [
59+
"logs:CreateLogGroup",
60+
"logs:CreateLogStream",
61+
"logs:PutLogEvents"
62+
]
63+
64+
resources = [
65+
"arn:aws:logs:*:*:*:/aws-glue/*",
66+
# "arn:aws:logs:*:*:*:/customlogs/*"
67+
]
68+
69+
effect = "Allow"
70+
}
5671
}
5772

5873
resource "aws_iam_policy" "glue_service" {

0 commit comments

Comments
 (0)