Skip to content

Commit

Permalink
fix: Glue ETL role permissions
Browse files Browse the repository at this point in the history
Update the Glue ETL IAM role to allow it to associate a KMS key with
the Glue CloudWatch log group.
  • Loading branch information
patheard committed Nov 12, 2024
1 parent c18f773 commit 56dd5f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terragrunt/aws/glue/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ data "aws_iam_policy_document" "glue_kms" {
"logs:AssociateKmsKey"
]
resources = [
"arn:aws:logs:${var.region}:${var.account_id}:log-group:${local.glue_crawler_log_group_name}:*"
"arn:aws:logs:${var.region}:${var.account_id}:log-group:${local.glue_crawler_log_group_name}:*",
"arn:aws:logs:${var.region}:${var.account_id}:log-group:${local.glue_etl_log_group_name}"
]
}
}
Expand Down
1 change: 1 addition & 0 deletions terragrunt/aws/glue/locals.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
locals {
glue_crawler_log_group_name = "/aws-glue/crawlers-role${aws_iam_role.glue_crawler.path}${aws_iam_role.glue_crawler.name}-${aws_glue_security_configuration.encryption_at_rest.name}"
glue_etl_log_group_name = "/aws-glue/sessions/*"
}

0 comments on commit 56dd5f9

Please sign in to comment.