Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GetTableMetadata to Athena read policy #60

Merged
merged 3 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/iam_policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"athena:GetNamespaces",
"athena:GetTable",
"athena:GetTables",
"athena:GetTableMetadata",
"athena:RunQuery",
"glue:GetDatabase",
"glue:GetDatabases",
Expand Down
3 changes: 2 additions & 1 deletion iam_builder/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def get_athena_read_access(dump_bucket: list) -> dict:
"athena:GetNamespaces",
"athena:GetTable",
"athena:GetTables",
"athena:GetTableMetadata",
"athena:RunQuery",
"glue:GetDatabase",
"glue:GetDatabases",
Expand Down Expand Up @@ -386,4 +387,4 @@ def get_kms_permissions(kms_arns: list) -> dict:
"Effect": "Allow",
"Resource": kms_arns,
}
return policy
return policy
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "iam_builder"
version = "4.3.0"
version = "4.4.0"
description = "A lil python package to generate iam policies"
authors = ["Karik Isichei <[email protected]>"]
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions tests/expected_policy/all_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"athena:GetNamespaces",
"athena:GetTable",
"athena:GetTables",
"athena:GetTableMetadata",
"athena:RunQuery",
"glue:GetDatabase",
"glue:GetDatabases",
Expand Down
1 change: 1 addition & 0 deletions tests/expected_policy/athena_full_access.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"athena:GetNamespaces",
"athena:GetTable",
"athena:GetTables",
"athena:GetTableMetadata",
"athena:RunQuery",
"glue:GetDatabase",
"glue:GetDatabases",
Expand Down
1 change: 1 addition & 0 deletions tests/expected_policy/athena_read_only.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"athena:GetNamespaces",
"athena:GetTable",
"athena:GetTables",
"athena:GetTableMetadata",
"athena:RunQuery",
"glue:GetDatabase",
"glue:GetDatabases",
Expand Down
1 change: 1 addition & 0 deletions tests/expected_policy/athena_two_dumps.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"athena:GetNamespaces",
"athena:GetTable",
"athena:GetTables",
"athena:GetTableMetadata",
"athena:RunQuery",
"glue:GetDatabase",
"glue:GetDatabases",
Expand Down
Loading