Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Accessing shared Amazon S3 tables

Focus mode
Accessing shared Amazon S3 tables - AWS Lake Formation

After you grant cross-account permissions on a database or table in the S3 tables catalog, to access the resources, you need to create resource links to the shared databases and tables.

  1. In the destination account (the account that receives the shared resources), create a database resource link. For detailed instructions, see Creating a resource link to a shared Data Catalog database.

    CLI example for creating a database resource link

    aws glue create-database 
    --region us-east-1 
    --catalog-id "111122223333" 
    --database-input \
    '{
      "Name": "s3table_resourcelink",
      "TargetDatabase": {
        "CatalogId": "011426214932:s3tablescatalog/chmni-s3-table-bucket-011426214932",
        "DatabaseName": "s3_table_ns"
      },
      "CreateTableDefaultPermissions": []
    }'
            
  2. Grant cross account permission on the table.

    CLI example for cross-account permission grant

    aws lakeformation grant-permissions \
    --region us-east-1 \
    --cli-input-json \
    '{
        "Principal": {
            "DataLakePrincipalIdentifier": "arn:aws:iam::111122223333:role/S3TablesTestExecRole"
        },
        "Resource": {
            "Table": {
                "CatalogId": "011426214932:s3tablescatalog/chmni-s3-table-bucket-011426214932",
                "DatabaseName": "s3_table_ns",
                "Name": "test_s3_iceberg_table"
            }
        },
        "Permissions": [
            "ALL"
        ]
    }'
            
  3. Grant Lake Formation DESCRIBE permission on the resource link.

    CLI example for granting describe permission on the resource link.

    aws lakeformation grant-permissions \
        --principal DataLakePrincipalIdentifier=arn:aws:iam::111122223333:role/S3TablesTestExecRole
        --resource Database='{CatalogId=111122223333;, Name=s3table_resourcelink}' \
        --permissions DESCRIBE
            
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.