{"title":"S3 Tables","description":"Connect Amazon S3 Tables to Altertable as an Iceberg REST catalog for managed, open-table lakehouse analytics.","order":320,"askSuggestions":["What IAM policy does read-only S3 Tables access need?","Why can't Altertable list my namespaces or tables?"],"navigation":true,"body":{"code":"var Component=(()=>{var p=Object.create;var r=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),k=(t,e)=>{for(var a in e)r(t,a,{get:e[a],enumerable:!0})},l=(t,e,a,s)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let c of m(e))!y.call(t,c)&&c!==a&&r(t,c,{get:()=>e[c],enumerable:!(s=u(e,c))||s.enumerable});return t};var S=(t,e,a)=>(a=t!=null?p(g(t)):{},l(e||!t||!t.__esModule?r(a,\"default\",{value:t,enumerable:!0}):a,t)),w=t=>l(r({},\"__esModule\",{value:!0}),t);var i=f((v,o)=>{o.exports=_jsx_runtime});var x={};k(x,{default:()=>b,frontmatter:()=>A});var n=S(i()),A={title:\"S3 Tables\",description:\"Connect Amazon S3 Tables to Altertable as an Iceberg REST catalog for managed, open-table lakehouse analytics.\",order:320,askSuggestions:[\"What IAM policy does read-only S3 Tables access need?\",\"Why can't Altertable list my namespaces or tables?\"]};function d(t){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",li:\"li\",ol:\"ol\",p:\"p\",pre:\"pre\",strong:\"strong\",ul:\"ul\",...t.components},{DocsPreviewDocument:a,DocsPreviewSection:s}=e;return a||h(\"DocsPreviewDocument\",!0),s||h(\"DocsPreviewSection\",!0),(0,n.jsxs)(a,{anchors:\"s3-tables prerequisites connect-s3-tables verify-the-connection troubleshooting\",children:[(0,n.jsxs)(s,{sectionId:\"s3-tables\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,n.jsx)(e.h1,{id:\"s3-tables\",children:\"S3 Tables\"}),`\n`,(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.a,{href:\"https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables.html\",children:\"Amazon S3 Tables\"}),\" provides an Iceberg-backed table bucket managed by AWS.\"]}),`\n`,(0,n.jsx)(e.p,{children:\"Connect S3 Tables to Altertable when your Iceberg tables live in an S3 table bucket and should be queryable from the Altertable lakehouse.\"}),`\n`]}),(0,n.jsxs)(s,{sectionId:\"prerequisites\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,n.jsx)(e.h2,{id:\"prerequisites\",children:\"Prerequisites\"}),`\n`,(0,n.jsx)(e.p,{children:\"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.\"}),`\n`,(0,n.jsx)(e.p,{children:\"For read-only access, attach a policy like this to that principal. Replace the region, account ID, and bucket name in both resources:\"}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-json\",children:`{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3tables:GetTableBucket\",\n        \"s3tables:GetNamespace\",\n        \"s3tables:ListNamespaces\",\n        \"s3tables:ListTables\"\n      ],\n      \"Resource\": \"arn:aws:s3tables:us-east-1:123456789012:bucket/my-table-bucket\"\n    },\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3tables:GetTable\",\n        \"s3tables:GetTableMetadataLocation\",\n        \"s3tables:GetTableData\"\n      ],\n      \"Resource\": \"arn:aws:s3tables:us-east-1:123456789012:bucket/my-table-bucket/table/*\"\n    }\n  ]\n}\n`})}),`\n`,(0,n.jsxs)(e.p,{children:[\"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 \",(0,n.jsx)(e.a,{href:\"https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-setting-up.html\",children:\"S3 Tables access management\"}),\" and \",(0,n.jsx)(e.a,{href:\"https://docs.aws.amazon.com/service-authorization/latest/reference/list_s3tables.html\",children:\"action/resource reference\"}),\".\"]}),`\n`]}),(0,n.jsxs)(s,{sectionId:\"connect-s3-tables\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,n.jsx)(e.h2,{id:\"connect-s3-tables\",children:\"Connect S3 Tables\"}),`\n`,(0,n.jsxs)(e.ol,{children:[`\n`,(0,n.jsxs)(e.li,{children:[\"Open \",(0,n.jsx)(e.strong,{children:\"Catalogs\"}),\" in the Altertable app.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Click \",(0,n.jsx)(e.strong,{children:\"New catalog\"}),\".\"]}),`\n`,(0,n.jsxs)(e.li,{children:[\"Select \",(0,n.jsx)(e.strong,{children:\"S3 Tables\"}),\".\"]}),`\n`,(0,n.jsx)(e.li,{children:\"Enter the table bucket ARN, region, access key ID, and secret access key.\"}),`\n`,(0,n.jsx)(e.li,{children:\"Save the catalog.\"}),`\n`,(0,n.jsx)(e.li,{children:\"Query the exposed tables with SQL.\"}),`\n`]}),`\n`,(0,n.jsx)(e.p,{children:\"Use least-privilege AWS credentials that grant Altertable only the table bucket access it needs.\"}),`\n`]}),(0,n.jsxs)(s,{sectionId:\"verify-the-connection\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,n.jsx)(e.h2,{id:\"verify-the-connection\",children:\"Verify the connection\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"Open the saved catalog and confirm that the expected namespaces and tables appear. In \",(0,n.jsx)(e.a,{href:\"/docs/lakehouse/query/sql-explorer\",children:\"SQL Explorer\"}),\", query one known table, replacing all three parts with the names shown in Altertable:\"]}),`\n`,(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:\"language-sql\",children:`SELECT * FROM my_catalog.my_namespace.my_table LIMIT 10;\n`})}),`\n`,(0,n.jsx)(e.p,{children:\"Compare a known row and column types with the source. Listing a table does not prove that its data files are readable.\"}),`\n`]}),(0,n.jsxs)(s,{sectionId:\"troubleshooting\",anchors:\"\",ancestors:\"\",index:\"4\",children:[(0,n.jsx)(e.h2,{id:\"troubleshooting\",children:\"Troubleshooting\"}),`\n`,(0,n.jsxs)(e.ul,{children:[`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Cannot list namespaces or tables:\"}),\" check the region, bucket ARN, and bucket-level IAM actions.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Tables appear but queries fail:\"}),\" check table-level data/metadata permissions, resource policies, and any KMS decrypt grant.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"The expected table is missing:\"}),\" confirm its namespace and that the principal can read that table's ARN.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:\"Credentials were rotated:\"}),\" update the saved catalog connection and rerun the known-row check.\"]}),`\n`]})]})]})}function b(t={}){let{wrapper:e}=t.components||{};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(d,{...t})}):d(t)}function h(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return w(x);})();\n;return Component;"},"_id":"docs/lakehouse/external-catalogs/s3-tables.mdx","_raw":{"sourceFilePath":"docs/lakehouse/external-catalogs/s3-tables.mdx","sourceFileName":"s3-tables.mdx","sourceFileDir":"docs/lakehouse/external-catalogs","contentType":"mdx","flattenedPath":"docs/lakehouse/external-catalogs/s3-tables"},"type":"Docs","path":"/lakehouse/external-catalogs/s3-tables","level":3,"parent":"lakehouse/external-catalogs"}