Skip to content

Commit

Permalink
fix: update Superset access to Glue catalog (#27)
Browse files Browse the repository at this point in the history
Update the data catalog's resource policy to limit Superset to only accessing
specific databases and tables.
  • Loading branch information
patheard authored Nov 15, 2024
1 parent 5d3c297 commit f966912
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terragrunt/aws/glue/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ data "aws_iam_policy_document" "cross_account_access" {
"glue:GetTableVersion",
"glue:GetTableVersions"
]
resources = ["arn:aws:glue:${var.region}:${var.account_id}:*"]
resources = [
"arn:aws:glue:${var.region}:${var.account_id}:catalog",
"arn:aws:glue:${var.region}:${var.account_id}:database/${aws_glue_catalog_database.operations_aws_production.name}",
"arn:aws:glue:${var.region}:${var.account_id}:table/${aws_glue_catalog_database.operations_aws_production.name}/*"
]
}
}

Expand Down

0 comments on commit f966912

Please sign in to comment.