diff --git a/CHANGELOG.md b/CHANGELOG.md index 22825be..62fd08d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## v4.8.0 + +- Updates standard athena policy to add 'glue:GetTableVersions' + ## v4.7.0 - Add London region for Amazon Bedrock diff --git a/examples/iam_policy.json b/examples/iam_policy.json index 9e4f014..9a47d9c 100644 --- a/examples/iam_policy.json +++ b/examples/iam_policy.json @@ -85,6 +85,7 @@ "glue:GetDatabase", "glue:GetDatabases", "glue:GetTable", + "glue:GetTableVersions", "glue:GetTables", "glue:GetPartition", "glue:GetPartitions", diff --git a/iam_builder/templates.py b/iam_builder/templates.py index 7536642..00951fa 100755 --- a/iam_builder/templates.py +++ b/iam_builder/templates.py @@ -268,6 +268,7 @@ def get_athena_read_access(dump_bucket: list) -> dict: "glue:GetDatabase", "glue:GetDatabases", "glue:GetTable", + "glue:GetTableVersions", "glue:GetTables", "glue:GetPartition", "glue:GetPartitions", diff --git a/pyproject.toml b/pyproject.toml index 810720d..12105fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "iam_builder" -version = "4.7.0" +version = "4.8.0" description = "A lil python package to generate iam policies" authors = ["Karik Isichei "] license = "MIT" diff --git a/tests/expected_policy/all_config.json b/tests/expected_policy/all_config.json index f048efd..aea87ea 100644 --- a/tests/expected_policy/all_config.json +++ b/tests/expected_policy/all_config.json @@ -85,6 +85,7 @@ "glue:GetDatabase", "glue:GetDatabases", "glue:GetTable", + "glue:GetTableVersions", "glue:GetTables", "glue:GetPartition", "glue:GetPartitions", diff --git a/tests/expected_policy/athena_full_access.json b/tests/expected_policy/athena_full_access.json index 1dc2304..94f9f59 100644 --- a/tests/expected_policy/athena_full_access.json +++ b/tests/expected_policy/athena_full_access.json @@ -85,6 +85,7 @@ "glue:GetDatabase", "glue:GetDatabases", "glue:GetTable", + "glue:GetTableVersions", "glue:GetTables", "glue:GetPartition", "glue:GetPartitions", diff --git a/tests/expected_policy/athena_read_only.json b/tests/expected_policy/athena_read_only.json index be206af..3269fc6 100644 --- a/tests/expected_policy/athena_read_only.json +++ b/tests/expected_policy/athena_read_only.json @@ -85,6 +85,7 @@ "glue:GetDatabase", "glue:GetDatabases", "glue:GetTable", + "glue:GetTableVersions", "glue:GetTables", "glue:GetPartition", "glue:GetPartitions", diff --git a/tests/expected_policy/athena_two_dumps.json b/tests/expected_policy/athena_two_dumps.json index 445337b..433ea6a 100644 --- a/tests/expected_policy/athena_two_dumps.json +++ b/tests/expected_policy/athena_two_dumps.json @@ -87,6 +87,7 @@ "glue:GetDatabase", "glue:GetDatabases", "glue:GetTable", + "glue:GetTableVersions", "glue:GetTables", "glue:GetPartition", "glue:GetPartitions",