Skip to content

Commit

Permalink
Update control panel role in prod (#6661)
Browse files Browse the repository at this point in the history
Updated prod control panel role to allow it to update the assume role policy for app roles
  • Loading branch information
jamesstottmoj authored Feb 3, 2025
1 parent 25de51e commit b5fcc54
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,13 @@ data "aws_iam_policy_document" "control_panel_api" {
]
}
statement {
sid = "CanUpdateAssumeRolesPolicies"
effect = "Allow"
actions = ["iam:UpdateAssumeRolePolicy"]
resources = ["arn:aws:iam::${var.account_ids["analytical-platform-data-production"]}:role/${var.resource_prefix}_user_*"]
sid = "CanUpdateAssumeRolesPolicies"
effect = "Allow"
actions = ["iam:UpdateAssumeRolePolicy"]
resources = [
"arn:aws:iam::${var.account_ids["analytical-platform-data-production"]}:role/${var.resource_prefix}_user_*",
"arn:aws:iam::${var.account_ids["analytical-platform-data-production"]}:role/${var.resource_prefix}_app_*"
]
}
statement {
sid = "CanCreateAndDeleteSSMParameters"
Expand Down

0 comments on commit b5fcc54

Please sign in to comment.