Configuring data lake settings for trusted identity propagation - AWS Lake Formation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Configuring data lake settings for trusted identity propagation

The following account-level settings control how Lake Formation authorizes requests that carry a user's identity. You configure them in the IdpSettings of your data lake settings, with the Lake Formation console or the PutDataLakeSettings operation. The settings apply to all grants to user:, group:, and IdpUsers principals in the account.

  • Cross-account access (Scope) – The AWS accounts, organizations, and organizational units (OUs) whose users can access the resources and grants in your account.

  • Carrier role permissions (UseIAMRoleGrants) – Whether Lake Formation combines the carrier role's permissions with the permissions granted to the user and the user's groups.

Important

PutDataLakeSettings replaces your data lake settings. Include your existing settings, such as DataLakeAdmins, in each request. To see your current settings, run aws lakeformation get-data-lake-settings.

Allowing access from other accounts

By default, Lake Formation accepts a request that carries a user's identity only when the carrier role is in the account that owns the Data Catalog. To allow users whose carrier role is in another account, add the account ID, the organization ARN, or the OU ARN to Scope. When you change Scope, Lake Formation creates or updates an AWS Resource Access Manager (AWS RAM) resource share with the accounts that you list.

Users from the accounts in Scope receive only the permissions that you grant to their user:, group:, or IdpUsers principals in your account.

AWS Management Console
To allow access from other accounts
  1. Sign in to the AWS Management Console, and open the Lake Formation console at https://eusc-de-east-1.console.amazonaws-eusc.eu/lakeformation/.

  2. In the navigation pane, under Administration, choose Data lake settings.

  3. Under trusted identity propagation, enter the AWS account IDs, organization ARNs, or OU ARNs that users can come from to access resources and grants in this account.

  4. Choose Save.

AWS CLI

The following AWS CLI command allows users from an AWS account and from an organization.

aws lakeformation put-data-lake-settings \ --data-lake-settings '{ "DataLakeAdmins": [{"DataLakePrincipalIdentifier": "arn:aws:iam::111122223333:role/Admin"}], "IdpSettings": { "Scope": [ {"DataLakePrincipalIdentifier": "444455556666"}, {"DataLakePrincipalIdentifier": "arn:aws:organizations::111122223333:organization/o-exampleorgid"} ] } }'

To remove access from all other accounts, set "Scope": [].

Using only user and group permissions

By default, UseIAMRoleGrants is true. A user's access is the union of the permissions granted to the carrier role, the user's groups, and the user. For more information, see How Lake Formation combines user and carrier role permissions.

To use only the permissions granted to users and groups, set UseIAMRoleGrants to false. Lake Formation then ignores the carrier role's permissions for every request that carries a user's identity in the account. To combine the permissions again, set it to true.

Note

If you move from legacy to enhanced trusted identity propagation, UseIAMRoleGrants is false by default, so only grants to users and groups apply.

AWS Management Console
To use only user and group permissions
  1. Sign in to the AWS Management Console, and open the Lake Formation console at https://eusc-de-east-1.console.amazonaws-eusc.eu/lakeformation/.

  2. In the navigation pane, under Administration, choose Data lake settings.

  3. Under trusted identity propagation, select the check box to opt out of combining carrier role permissions, so that only grants to users and groups apply.

  4. Choose Save.

AWS CLI

The following AWS CLI command turns off carrier role permissions for requests that carry a user's identity.

aws lakeformation put-data-lake-settings \ --data-lake-settings '{ "DataLakeAdmins": [{"DataLakePrincipalIdentifier": "arn:aws:iam::111122223333:role/Admin"}], "IdpSettings": {"UseIAMRoleGrants": false} }'