LakeFormation Authorization for AuraJobV2
If an IAM user submits an AuraJobV2 job, you need to complete IAM cloud service authorization and LakeFormation resource authorization so that the job can access LakeFormation data and metadata resources.
Procedure
- IAM fine-grained authorization for LakeFormation: Grant permissions to use LakeFormation APIs.
IAM provides access permissions for users and user groups to control resource access. You can create custom policies on the IAM console to define which LakeFormation APIs can be called, and then attach these policies to the specified users or user groups.
For details about how to grant permissions in IAM, see Creating a User and Granting LakeFormation Permissions.
- LakeFormation SQL resource authorization: Grant permissions to specific LakeFormation resources.
LakeFormation resource authorization grants users permissions for specific resources (such as metadata, databases, tables, columns, and functions) to control access to LakeFormation data and metadata.
- Method 1: Grant permissions to resources on the LakeFormation console. Currently, AuraJobV2 supports three principal types: user groups, roles, and users.
For details about LakeFormation SQL resource permissions, see Configuring LakeFormation Metadata Permissions.
- Method 2: Run the GRANT SQL statement on the DataArts Studio console.
You can run the GRANT statement to grant users or roles the permissions to access databases, tables, columns, and functions.
Table 1 describes the authorization policies for LakeFormation resources.
- Method 1: Grant permissions to resources on the LakeFormation console. Currently, AuraJobV2 supports three principal types: user groups, roles, and users.
SQL Authentication
| Type | SQL Statement | LakeFormation SQL Resource Authentication Permission | IAM Permission |
|---|---|---|---|
| DDL statements | ALTER DATABASE | catalog:ALTER | lakeformation:catalog:alter |
| DROP DATABASE | catalog:DROP | lakeformation:catalog:drop | |
| DESCRIBE DATABASE | catalog:DESCRIBE | lakeformation:catalog:describe | |
| SHOW DATABASES | catalog:LIST_DATABASE | lakeformation:catalog:list | |
| SHOW MODELS | catalog:LIST_DATABASE | lakeformation:catalog:list | |
| CREATE SCHEMA | database:CREATE | lakeformation:database:create | |
| ALTER SCHEMA | database:ALTER | lakeformation:database:alter | |
| DROP SCHEMA | database:DROP | lakeformation:database:drop | |
| DESCRIBE SCHEMA | database:DESCRIBE | lakeformation:database:describe | |
| SHOW TABLES | database:LIST_TABLE | lakeformation:database:list | |
| SHOW FUNCTIONS | database:LIST_FUNC | lakeformation:database:list | |
| CREATE TABLE | schema:CREATE | lakeformation:schema:create | |
| CREATE MODEL | schema:CREATE | lakeformation:schema:create | |
| CREATE FUNCTION | schema:CREATE | lakeformation:schema:create | |
| ALTER TABLE | table:ALTER | lakeformation:table:alter | |
| DESCRIBE TABLE | table:DESCRIBE | lakeformation:table:describe | |
| SHOW PARTITIONS | table:DESCRIBE | lakeformation:table:describe | |
| TRUNCATE TABLE | table:DELETE | lakeformation:table:delete | |
| MSCK REPAIR TABLE | table:ALTER | lakeformation:table:alter | |
| DROP TABLE | table:DROP | lakeformation:table:drop | |
| DESCRIBE FUNCTION | function:DESCRIBE | lakeformation:function:describe | |
| DROP FUNCTION | function:DROP | lakeformation:function:drop | |
| DESCRIBE MODEL | model:DESCRIBE | lakeformation:model:describe | |
| DROP MODEL | model:DROP | lakeformation:model:drop | |
| DML statements | SELECT | table:SELECT | lakeformation:table:select |
| INSERT | table:INSERT | lakeformation:table:insert | |
| UPDATE | table:UPDATE | lakeformation:table:update | |
| DELETE | table:DELETE | lakeformation:table:delete |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot