Skip to content
DocumentationLakehouse

S3 Tables

Amazon S3 Tables provides an Iceberg-backed table bucket managed by AWS.

Connect S3 Tables to Altertable when your Iceberg tables live in an S3 table bucket and should be queryable from the Altertable lakehouse.

Prerequisites

You need a table bucket ARN, its AWS region, and credentials that can discover namespaces and tables and read their metadata and data. Use a dedicated principal with access to the intended table bucket.

For read-only access, attach a policy like this to that principal. Replace the region, account ID, and bucket name in both resources:

JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3tables:GetTableBucket",
"s3tables:GetNamespace",
"s3tables:ListNamespaces",
"s3tables:ListTables"
],
"Resource": "arn:aws:s3tables:us-east-1:123456789012:bucket/my-table-bucket"
},
{
"Effect": "Allow",
"Action": [
"s3tables:GetTable",
"s3tables:GetTableMetadataLocation",
"s3tables:GetTableData"
],
"Resource": "arn:aws:s3tables:us-east-1:123456789012:bucket/my-table-bucket/table/*"
}
]
}

Restrict table resources further when only specific tables should be readable. Cross-account access also requires an appropriate table bucket or table resource policy. Encrypted tables may need KMS permissions. See AWS's S3 Tables access management and action/resource reference.

Connect S3 Tables

  1. Open Catalogs in the Altertable app.
  2. Click New catalog.
  3. Select S3 Tables.
  4. Enter the table bucket ARN, region, access key ID, and secret access key.
  5. Save the catalog.
  6. Query the exposed tables with SQL.

Use least-privilege AWS credentials that grant Altertable only the table bucket access it needs.

Verify the connection

Open the saved catalog and confirm that the expected namespaces and tables appear. In SQL Explorer, query one known table, replacing all three parts with the names shown in Altertable:

SQL
SELECT * FROM my_catalog.my_namespace.my_table LIMIT 10;

Compare a known row and column types with the source. Listing a table does not prove that its data files are readable.

Troubleshooting

  • Cannot list namespaces or tables: check the region, bucket ARN, and bucket-level IAM actions.
  • Tables appear but queries fail: check table-level data/metadata permissions, resource policies, and any KMS decrypt grant.
  • The expected table is missing: confirm its namespace and that the principal can read that table's ARN.
  • Credentials were rotated: update the saved catalog connection and rerun the known-row check.