Skip to content

Commit

Permalink
Simplify Athena permissions and add List* to include "athena:ListData…
Browse files Browse the repository at this point in the history
…Catalogs", "athena:ListDatabases", "athena:ListTableMetadata"
  • Loading branch information
dlpzx committed Apr 9, 2024
1 parent 4198e3c commit a9a1b2e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ def get_statements(self, group_permissions, **kwargs):
statements = [
iam.PolicyStatement(
# sid="ListAthena",
actions=['athena:ListWorkGroups', 'athena:ListTagsForResource', 'athena:GetWorkgroup'],
actions=[
'athena:List*',
'athena:GetWorkgroup'
],
effect=iam.Effect.ALLOW,
resources=['*'],
),
Expand All @@ -23,7 +26,6 @@ def get_statements(self, group_permissions, **kwargs):
actions=[
'athena:Get*',
'athena:BatchGet*',
'athena:List*',
'athena:StartQueryExecution',
'athena:StopQueryExecution',
'athena:CreateNamedQuery',
Expand Down

0 comments on commit a9a1b2e

Please sign in to comment.