> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to AWS Glue native in another AWS account

> Register AWS Glue native and read a table with the selected AWS identity.

How-to guideApplies to: Unified engine deployments

Register AWS Glue native and read a table with the selected AWS identity.

## Before you start

Use an existing catalog with at least one readable Iceberg table. The engine and
workers must reach the catalog and its table storage. Have the remote identity
and permissions ready before creating the Unified registration. Replace the
namespace and table with one you know has data.

The identity comes from the engine runtime, not your browser or laptop. Grant
catalog metadata access and access to the actual table-file prefixes, including
any required KMS keys. The target account must grant cross-account Glue access
to the runtime identity. S3 access must also be granted separately; the catalog
account ID does not grant it. Native Glue uses a region and optional catalog
account ID, rather than a REST URI. Use the S3 endpoint for the table data
region.

## Values to collect

* AWS region, namespace, table, and service-specific catalog identifiers.
* Runtime identity with access to the catalog and data.

## Run the SQL

Replace every `<placeholder>` before running. Use unused names for the resources
below. Run the statements in order in Workbench.

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
CREATE CREDENTIAL recipe_glue_native_cross_account_auth USING aws
OPTIONS (
  'authentication' = 'default_chain',
  'region' = '<aws-region>'
);

CREATE CATALOG recipe_glue_native_cross_account USING glue
OPTIONS (
  'region' = '<aws-region>',
  'catalog-id' = '<catalog-account-id>',
  's3.region' = '<aws-region>',
  's3.endpoint' = '<s3-endpoint>',
  's3.allow-http' = 'false'
)
CREDENTIALS ('auth' = 'recipe_glue_native_cross_account_auth', 'storage' = 'recipe_glue_native_cross_account_auth');

SELECT *
FROM recipe_glue_native_cross_account.`<namespace>`.`<table>`
LIMIT 5;
```

## Check the result

The SELECT should return up to five rows from the chosen table. Use a nonempty
table for this check. This verifies both metadata and table-file access;
creating the registration alone does not verify either.

## Clean up

This removes only the Unified registrations. It leaves the remote catalog and
its tables in place.

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
DROP CATALOG recipe_glue_native_cross_account;
DROP CREDENTIAL recipe_glue_native_cross_account_auth;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.