Skip to content

Commit

Permalink
Merge pull request #56 from moj-analytical-services/add-permission-at…
Browse files Browse the repository at this point in the history
…hena-list_query_executions

add athena:ListNamedQueries permission
  • Loading branch information
williamorrie authored Jan 22, 2024
2 parents 18af40c + 2eeed04 commit dd27d4a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/iam_policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"athena:GetQueryResultsStream",
"athena:GetWorkGroup",
"athena:ListNamedQueries",
"athena:ListQueryExecutions",
"athena:ListWorkGroups",
"athena:StartQueryExecution",
"athena:StopQueryExecution",
Expand Down
1 change: 1 addition & 0 deletions iam_builder/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def get_athena_read_access(dump_bucket: list) -> dict:
"athena:GetQueryResultsStream",
"athena:GetWorkGroup",
"athena:ListNamedQueries",
"athena:ListQueryExecutions",
"athena:ListWorkGroups",
"athena:StartQueryExecution",
"athena:StopQueryExecution",
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 @@ -68,6 +68,7 @@
"athena:GetQueryResultsStream",
"athena:GetWorkGroup",
"athena:ListNamedQueries",
"athena:ListQueryExecutions",
"athena:ListWorkGroups",
"athena:StartQueryExecution",
"athena:StopQueryExecution",
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 @@ -68,6 +68,7 @@
"athena:GetQueryResultsStream",
"athena:GetWorkGroup",
"athena:ListNamedQueries",
"athena:ListQueryExecutions",
"athena:ListWorkGroups",
"athena:StartQueryExecution",
"athena:StopQueryExecution",
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 @@ -68,6 +68,7 @@
"athena:GetQueryResultsStream",
"athena:GetWorkGroup",
"athena:ListNamedQueries",
"athena:ListQueryExecutions",
"athena:ListWorkGroups",
"athena:StartQueryExecution",
"athena:StopQueryExecution",
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 @@ -70,6 +70,7 @@
"athena:GetQueryResultsStream",
"athena:GetWorkGroup",
"athena:ListNamedQueries",
"athena:ListQueryExecutions",
"athena:ListWorkGroups",
"athena:StartQueryExecution",
"athena:StopQueryExecution",
Expand Down

0 comments on commit dd27d4a

Please sign in to comment.