Skip to content

Commit ed4f4fe

Browse files
add GetPartition(s) actions (#2495)
1 parent 31d991a commit ed4f4fe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

terraform/modules/department/02-inputs-optional.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ variable "additional_glue_database_access" {
7373
Additional Glue database access to grant to the department.
7474
Allows specifying specific databases and the actions that can be performed on them.
7575
76-
Note: The actions 'glue:GetDatabase' and 'glue:GetDatabases' are automatically
76+
Note: The actions 'glue:GetDatabase', 'glue:GetDatabases', 'glue:GetPartition' and 'glue:GetPartitions' are automatically
7777
appended to the actions list to ensure databases appear in SQL editors and can be
7878
accessed. You only need to specify additional actions like table operations:
7979
- glue:GetTable, glue:GetTables
8080
- glue:CreateTable, glue:UpdateTable, glue:DeleteTable (for write access)
81-
- glue:GetPartition, glue:GetPartitions
8281
- glue:CreatePartition, glue:UpdatePartition, glue:DeletePartition (for write access)
8382
EOF
8483
type = list(object({

terraform/modules/department/50-aws-iam-policies.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ data "aws_iam_policy_document" "read_only_glue_access" {
240240
[
241241
"glue:GetDatabase", # Required for specific database access
242242
"glue:GetDatabases", # Required for SQL editor database listing
243+
"glue:GetPartition",
244+
"glue:GetPartitions",
243245
]
244246
))
245247
resources = [
@@ -641,6 +643,8 @@ data "aws_iam_policy_document" "glue_access" {
641643
[
642644
"glue:GetDatabase", # Required for specific database access
643645
"glue:GetDatabases", # Required for SQL editor database listing
646+
"glue:GetPartition",
647+
"glue:GetPartitions",
644648
]
645649
))
646650
resources = [

0 commit comments

Comments
 (0)