AWS Glue Data Catalog
AWS Glue Data Catalog can act as the catalog for Iceberg tables stored in AWS.
Connect Glue to Altertable when Glue is the source of truth for table metadata and Altertable should query those Iceberg tables alongside other lakehouse data.
Prerequisites
Prepare the AWS account ID, region, IAM role ARN, and the Glue database to use by default. The role must allow reading Glue catalog metadata and the underlying Iceberg objects.
Altertable assumes that role from a dedicated AWS principal, using an external ID unique to your organization (altertable- followed by the organization ID). The role trust policy must allow sts:AssumeRole from that principal and require sts:ExternalId equal to the external ID. The Glue catalog form shows both values and a trust policy you can copy, for example:
{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Principal": {"AWS": "arn:aws:iam::123456789012:user/altertable-customer-role-broker"},"Action": "sts:AssumeRole","Condition": {"StringEquals": {"sts:ExternalId": "altertable-7c9e6679-7425-40de-944b-e07fc1f90ae7"}}}]}
Use the principal ARN and external ID shown in Altertable, not the values in this example.
A read-only policy must cover:
glue:GetCatalog,glue:GetDatabase,glue:GetDatabases,glue:GetTable, andglue:GetTableson the catalog, intended databases, and tables.glue:GetCatalogis what the Glue Iceberg endpoint checks first.s3:ListBucketon the data bucket, scoped to the relevant prefixes.s3:GetObjecton those prefixes, including Iceberg metadata, manifests, and data files.kms:Decrypton the key when those objects use customer-managed KMS encryption.
If AWS Lake Formation governs the tables, configure its permissions as well as IAM. Use the AWS Glue IAM guide to scope the role and its trust policy.
Connect AWS Glue Data Catalog
- Create or choose an IAM role with the Glue and storage permissions required for the tables Altertable should query.
- Open Catalogs in the Altertable app.
- Click New catalog.
- Select AWS Glue Data Catalog.
- Enter the AWS account ID, region, role ARN, and the default database for unqualified table names. Tables in other databases stay queryable.
- Copy the trust policy from the form into the IAM role's trust relationship.
- Save the catalog, then query the Glue-backed tables with SQL.
Scope the IAM role to the catalogs, databases, tables, and storage locations Altertable needs. If table data is encrypted with AWS KMS, include the required decrypt permissions.
Verify the connection
Open the saved catalog and check that the intended database and tables appear. In SQL Explorer, replace the example names and read a known table:
SELECT * FROM my_catalog.my_database.my_table LIMIT 10;
Compare a known record with its source and inspect the returned column types. Metadata discovery alone does not verify S3 access.
Troubleshooting
- Role cannot be assumed: confirm the trust policy principal matches Altertable's principal ARN,
sts:ExternalIdmatches the organization's external ID, and the role ARN is correct. - Database or table is missing: check the region, Glue IAM resources, and Lake Formation grants.
- Tables appear but data cannot be read: check S3 prefixes, object permissions, and KMS decrypt access.
- Schema changed upstream: inspect the source table metadata and recheck the catalog before changing queries.