Skip to content

Commit

Permalink
feat: Merge pull request #5 from angryhamsterx/glue_tables_another_ac…
Browse files Browse the repository at this point in the history
…count

Allow access to glue tables in different account
  • Loading branch information
fdmsantos authored Nov 9, 2023
2 parents 5a384cb + d343efd commit a09447e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ data "aws_iam_policy_document" "glue" {
"glue:GetTableVersions"
]
resources = [
"arn:aws:glue:${local.data_format_conversion_glue_region}:${data.aws_caller_identity.current.account_id}:catalog",
"arn:aws:glue:${local.data_format_conversion_glue_region}:${data.aws_caller_identity.current.account_id}:database/${var.data_format_conversion_glue_database}",
"arn:aws:glue:${local.data_format_conversion_glue_region}:${data.aws_caller_identity.current.account_id}:table/${var.data_format_conversion_glue_database}/${var.data_format_conversion_glue_table_name}"
"arn:aws:glue:${local.data_format_conversion_glue_region}:${local.data_format_conversion_glue_catalog_id}:catalog",
"arn:aws:glue:${local.data_format_conversion_glue_region}:${local.data_format_conversion_glue_catalog_id}:database/${var.data_format_conversion_glue_database}",
"arn:aws:glue:${local.data_format_conversion_glue_region}:${local.data_format_conversion_glue_catalog_id}:table/${var.data_format_conversion_glue_database}/${var.data_format_conversion_glue_table_name}"
]
}
}
Expand Down

0 comments on commit a09447e

Please sign in to comment.