- Newest
- Most votes
- Most comments
To enforce Lake Formation permissions for all users in your account, you need to follow these steps:
- First, ensure all users who need access to your data lake have the necessary IAM permissions. Create and attach the following policy named
LakeFormationDataAccessto every user:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "LakeFormationDataAccess",
"Effect": "Allow",
"Action": [
"lakeformation:GetDataAccess"
],
"Resource": "*"
}
]
}
-
Switch your data stores to the Lake Formation permissions model. This involves registering the Amazon S3 locations of your databases or tables with Lake Formation.
-
Verify that the
Superpermission to theIAMAllowedPrincipalsgroup exists on the databases and tables for which you registered the data location. -
Grant specific Lake Formation permissions to users using GRANT/REVOKE commands (like
Grant SELECT on tableName to userName). Remember that Lake Formation uses a combination of Lake Formation permissions and IAM permissions. -
For users who will be granting or revoking permissions using the Lake Formation console, ensure they have the appropriate IAM permissions including:
lakeformation:ListPermissionslakeformation:GrantPermissionslakeformation:RevokePermissions- Various
glue:permissions for accessing catalog resources iam:ListUsersandiam:ListRoles
- If you want to use hybrid access mode (which allows you to enable Lake Formation permissions for specific users without interrupting existing workloads), you can opt in specific principals by enabling the option "Make Lake Formation permissions effective immediately" in the Lake Formation console.
Remember that for a request to succeed, it must pass permission checks by both IAM and Lake Formation. Lake Formation permissions control access to Data Catalog resources and underlying data, while IAM permissions control access to the Lake Formation and AWS Glue APIs.
Sources
Upgrading AWS Glue data permissions to the AWS Lake Formation model - AWS Lake Formation
Overview of Lake Formation permissions - AWS Lake Formation
IAM permissions required to grant or revoke Lake Formation permissions - AWS Lake Formation
Sharing an AWS Glue resource using hybrid access mode - AWS Lake Formation
answered a year ago
Relevant content
asked a year ago
- AWS OFFICIALUpdated 3 months ago
