Skip to content

Commit

Permalink
Merge pull request #9025 from ministryofjustice/issue/8617
Browse files Browse the repository at this point in the history
Issue/8617
  • Loading branch information
mikereiddigital authored Jan 21, 2025
2 parents 580f657 + e103611 commit 3bca868
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
5 changes: 0 additions & 5 deletions terraform/environments/bootstrap/single-sign-on/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ data "aws_ssm_parameter" "modernisation_platform_account_id" {
name = "modernisation_platform_account_id"
}

# Allows access to the current account ID
data "aws_caller_identity" "current" {}
output "account_id" {
value = data.aws_caller_identity.current.account_id
}
13 changes: 0 additions & 13 deletions terraform/environments/bootstrap/single-sign-on/policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -367,19 +367,6 @@ data "aws_iam_policy_document" "developer_additional" {
}
}

# Additional statement that allows for the creation of on-demand AWS Backups.
statement {
sid = "AllowPassRoleForBackup"
effect = "Allow"
actions = ["iam:PassRole"]
resources = ["arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/AWSBackup"]
condition {
test = "StringEquals"
variable = "iam:PassedToService"
values = ["backup.amazonaws.com"]
}
}

}

# data engineering policy (developer + glue + some athena)
Expand Down

0 comments on commit 3bca868

Please sign in to comment.