Skip to content

Commit

Permalink
Allowing Control Panel to Assume Role in Parent Account
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Jan 16, 2025
1 parent 688ca19 commit 8c92fd6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ data "aws_iam_policy_document" "control_panel_api" {
]
resources = [
"arn:aws:iam::${var.account_ids["analytical-platform-compute-development"]}:role/analytical-platform-control-panel",
"arn:aws:iam::${var.account_ids["analytical-platform-compute-test"]}:role/analytical-platform-control-panel"
"arn:aws:iam::${var.account_ids["analytical-platform-compute-test"]}:role/analytical-platform-control-panel",
"arn:aws:iam::${var.account_ids["parent-account"]}:role/AnalyticalPlatformIdentityCenter"
]
}
statement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ account_ids = {
analytical-platform-production = "312423030077"
analytical-platform-compute-development = "381491960855"
analytical-platform-compute-test = "767397661611"
parent-account = "295814833350"
}

environment = "development"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ data "aws_iam_policy_document" "control_panel_api" {
]
resources = [
"arn:aws:iam::${var.account_ids["analytical-platform-compute-production"]}:role/analytical-platform-control-panel",
"arn:aws:iam::${var.account_ids["analytical-platform-compute-test"]}:role/analytical-platform-control-panel"
"arn:aws:iam::${var.account_ids["analytical-platform-compute-test"]}:role/analytical-platform-control-panel",
"arn:aws:iam::${var.account_ids["parent-account"]}:role/AnalyticalPlatformIdentityCenter"
]
}
statement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ account_ids = {
analytical-platform-management-production = "042130406152"
analytical-platform-production = "312423030077"
analytical-platform-compute-test = "767397661611"
analytical-platform-compute-production = "992382429243"
analytical-platform-compute-production = "992382429243",
parent-account = "295814833350"
}

environment = "production"
Expand Down

0 comments on commit 8c92fd6

Please sign in to comment.