Skip to content

Commit

Permalink
fix: databricks-catalog-external-location - Make role self-assuming
Browse files Browse the repository at this point in the history
  • Loading branch information
jjb007 committed Oct 23, 2024
1 parent 0cd752c commit 372233e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion databricks-catalog-external-location/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ data "aws_iam_policy_document" "databricks_external_location_assume_role" {
statement {
principals {
type = "AWS"
identifiers = ["arn:aws:iam::414351767826:role/unity-catalog-prod-UCMasterRole-14S5ZJVKOTYTL"]
identifiers = [
"arn:aws:iam::414351767826:role/unity-catalog-prod-UCMasterRole-14S5ZJVKOTYTL",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role${local.path}${local.iam_role_name}"
]
}

actions = ["sts:AssumeRole"]
Expand Down

0 comments on commit 372233e

Please sign in to comment.