Skip to content

Commit

Permalink
Merge pull request #8331 from ministryofjustice/add-list-perms
Browse files Browse the repository at this point in the history
EM: Add Listing permissions
  • Loading branch information
matt-heery authored Oct 17, 2024
2 parents 035cd69 + 91bf5ac commit bfde9a4
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ data "aws_region" "current" {}
data "aws_caller_identity" "current" {}

data "aws_iam_policy_document" "load_data" {
#checkov:skip=CKV_AWS_356
#checkov:skip=CKV_AWS_111
statement {
sid = "GetFiles${local.camel-sid}"
effect = "Allow"
Expand Down Expand Up @@ -54,6 +56,18 @@ data "aws_iam_policy_document" "load_data" {
"arn:aws:glue:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:table/${var.database_name}/*"
]
}
statement {
sid = "ListAccountAlias${local.camel-sid}"
effect = "Allow"
actions = ["iam:ListAccountAliases"]
resources = ["*"]
}
statement {
sid = "ListAllBucket${local.camel-sid}"
effect = "Allow"
actions = ["s3:ListAllMyBuckets", "s3:GetBucketLocation"]
resources = ["*"]
}
}

module "load_unstructured_atrium_database" {
Expand Down

0 comments on commit bfde9a4

Please sign in to comment.