Converting an AWS Glue resource to a hybrid resource
Follow these steps to register an Amazon S3 location in hybrid access mode and on-board new Lake Formation users without interrupting the existing Data Catalog users' data access.
Scenario description - The data location is not registered with Lake Formation, and users' access
to the Data Catalog database and tables is determined by IAM permissions policies for Amazon S3 and
AWS Glue actions.
The IAMAllowedPrincipals group by default has Super permissions on all tables in the database.
To enable hybrid access mode for a data location that is not registered with Lake Formation
Register an Amazon S3 location enabling hybrid access mode.
-
Grant permissions and opt in principals to use Lake Formation permissions for resources in hybrid access mode
Before you opt in principals and resources in hybrid access mode, verify that
SuperorAllpermissions toIAMAllowedPrincipalsgroup exists on the databases and tables that have location registered with Lake Formation in hybrid access mode.Note
You can't grant the
IAMAllowedPrincipalsgroup permission onAll tableswithin a database. You need to select each table separately from the drop-down menu, and grant permissions. Also, when you create new tables in the database, you can choose to use theUse only IAM access control for new tables in new databasesin the Data Catalog Settings. This option grantsSuperpermission to theIAMAllowedPrincipalsgroup automatically when you create new tables within the database.-
If you choose LF-Tags to grant permissions, you can opt in principals to use Lake Formation permissions in a separate step. You can do this by choosing Hybrid access mode under Permissions from the left navigation bar.
-
On the lower section of the Hybrid access mode page, choose Add to add resources and principals to hybrid access mode.
-
On the Add resources and principals page, choose the catalogs, databases and tables registered in hybrid access mode.
You can choose
All tablesunder a database to grant access.
-
Choose principals opt in to use Lake Formation permissions in hybrid access mode.
-
Principals – You can choose IAM users and roles in the same account or in another account. You can also choose SAML users and groups.
Attributes – Select attributes to grant permissions based on attributes.
Enter the key-value pair to create a grant based on attributes. Review the Cedar policy expression on the console. For more information about Cedar, see What is Cedar? | Cedar Policy Language Reference GuideLink
. Choose Add.
All IAM roles/users with matching attributes are granted access.
-
-
Choose Add.
-