- Newest
- Most votes
- Most comments
If there are too many permissions, client side filtering might have not loaded all permissions. If you see option to navigate to next pages on the top right, try navigating to see if it loads any permissions.
Regarding revoking permissions to 'IAM_ALLOWED_PRINCIPALS' on all tables in the database, you will have to run a BatchRevokePermissions[1] API. RevokePermissions[2] can only revoke one permission grant.
TableWildcard refers to a construct called 'ALL_TABLES'. Grant on 'ALL_TABLES' is one grant permission that helps apply the same permissions to all tables in a database. This helps avoid making GrantPermissions calls for each table if you are looking to share all tables in a database.
Suppose you have permissions granted to an IAM principal on each table separately, then you will have to make RevokePermissions API call for each of those grants. Here we cannot use TableWildcard.
From what I understand here, each table has a permission granted to 'IAM_ALLOWED_PRINCIPALS', therefore you will have to call RevokePermissions on each and every table. You can also consider using BatchRevokePermissions.
If there are too many permissions to be revoked, I would recommend doing it programmatically - first using ListPermissions[3] or GetTables[4] (if you know all tables have this permission and need to be revoked) to list resources, then use RevokePermissions[5] or BatchRevokePermissions[6].
[1] https://docs.aws.amazon.com/cli/latest/reference/lakeformation/batch-revoke-permissions.html [2] https://docs.aws.amazon.com/cli/latest/reference/lakeformation/revoke-permissions.html [3] https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lakeformation/client/list_permissions.html [4] https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/glue/client/get_table.html [5] https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lakeformation/client/revoke_permissions.html [6] https://boto3.amazonaws.com/v1/documentation/api/1.28.1/reference/services/lakeformation/client/batch_revoke_permissions.html
Relevant content
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago