File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
terraform/account-wide-infrastructure/modules/glue Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
5873resource "aws_iam_policy" "glue_service" {
You can’t perform that action at this time.
0 commit comments