Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Catalog mirroring for AWS Glue enables Microsoft Fabric customers to read Iceberg data cataloged in the AWS Glue Data Catalog from Fabric workloads.
Important
This feature is in preview.
Prerequisites
- You must have an AWS account with an AWS Glue Data Catalog that contains the Apache Iceberg tables you want to mirror.
- The AWS Glue Iceberg REST catalog endpoint and the Amazon S3 locations that store the Iceberg data must be reachable over the public internet. Source firewall rules and other source-network restrictions aren't supported. Mirrored catalogs support workspace outbound access protection in Fabric. See limitations and considerations of this feature.
- You need an AWS Identity and Access Management (IAM) user with an access key and the permissions described in Configure AWS authentication.
- You need a Fabric workspace associated with a Fabric capacity (F SKU or Trial).
- Your Fabric tenant administrator must enable the tenant admin setting titled Enable new mirrored catalog items (Preview).
Configure AWS authentication
AWS Glue catalog mirroring uses a delegated authorization model. You provide the access key ID and secret access key of an IAM user, and Fabric uses that credential for the initial catalog scan and for ongoing metadata sync. Give the IAM user read access to both the AWS Glue Data Catalog and the Amazon S3 data before you create the connection.
In the AWS IAM console, select or create the IAM user that Fabric uses to connect.
Attach a policy that grants read access to the AWS Glue Data Catalog and to the Amazon S3 buckets that store your Iceberg data. The following least-privilege policy grants the required permissions. Replace
your-bucketwith the name of each bucket that holds the Iceberg table data.{ "Version": "2012-10-17", "Statement": [ { "Sid": "GlueCatalogRead", "Effect": "Allow", "Action": [ "glue:GetCatalog", "glue:GetDatabases", "glue:GetDatabase", "glue:GetTables", "glue:GetTable" ], "Resource": "*" }, { "Sid": "S3DataRead", "Effect": "Allow", "Action": [ "s3:GetObject", "s3:GetBucketLocation", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::your-bucket", "arn:aws:s3:::your-bucket/*" ] } ] }If your AWS Glue Data Catalog is governed by AWS Lake Formation, grant the same IAM user the corresponding Lake Formation permissions on the databases and tables that you want to mirror. Databases and tables that the IAM user can't read in Lake Formation don't appear when you select data to mirror.
Create an access key for the IAM user, and then copy the access key ID and secret access key. You enter these values when you create the connection.
Create a mirrored AWS Glue catalog
Follow these steps to create a new mirrored AWS Glue catalog in Fabric.
Go to https://fabric.microsoft.com.
Select + New and then Mirrored AWS Glue catalog (preview).
Select an existing connection if you have one configured.
If you don't have an existing connection, create a new connection and enter all the required details:
- For URL, enter the AWS Glue Iceberg REST catalog endpoint for your account's Region, in the form
https://glue.Region.amazonaws.com/iceberg. - For Warehouse, enter your AWS Glue catalog ID, which is your 12-digit AWS account ID.
- For Authentication kind, select Access Key.
- For Access Key ID and Secret Access Key, enter the access key that you created in Configure AWS authentication.
- For URL, enter the AWS Glue Iceberg REST catalog endpoint for your account's Region, in the form
After you connect to AWS Glue, on the Choose data page, select the Catalog scope, which is the part of the AWS Glue catalog you want to mirror. Then, using the table list, select the tables that you want to access in Fabric.
- You can only see the databases and tables that the IAM identity has access to, based on the permissions granted in AWS Glue and AWS Lake Formation.
- By default, the Automatically sync future tables option is enabled. For more information, see AWS Glue catalog mirroring.
When you make your selections, select Next.
On the Review and create page, review the details and set the mirrored catalog item name, which must be unique in your workspace. Select Create.
A mirrored AWS Glue catalog item is created. For each table, a corresponding shortcut is also automatically created.
- Databases that don't have any tables aren't shown.
You can preview data by selecting a table, or by opening the SQL analytics endpoint. Open the SQL analytics endpoint item to launch the Explorer and Query editor page. You can query your mirrored AWS Glue tables by using T-SQL in the SQL Editor.
Create Lakehouse shortcuts to the mirrored AWS Glue catalog item
You can also create shortcuts from your lakehouse to your mirrored AWS Glue catalog item to use your lakehouse data and Spark notebooks.
- First, create a lakehouse. If you already have a lakehouse in this workspace, you can use an existing one.
- Select your workspace in the navigation menu.
- Select + New > Lakehouse.
- Provide a name for your lakehouse in the Name field, and select Create.
- In the Explorer view of your lakehouse, in the Get data in your lakehouse menu, under Load data in your lakehouse, select the New shortcut button.
- Select Microsoft OneLake. Select the mirrored AWS Glue catalog item that you created in the previous steps. Then select Next.
- Select tables within the database, and select Next.
- Select Create.
- Shortcuts are now available in your lakehouse to use with your other lakehouse data. You can also use notebooks and Spark to perform data processing on the data for these catalog tables that you added from AWS Glue.