用途:在 Amazon S3 Tables(s3tables API 命名空间)中创建托管 Iceberg 表,具备自动压缩与快照管理,可通过 Athena 和兼容 Iceberg 的引擎查询。
主要能力与流程:创建前须检查已有资产,运行 aws glue get-tables --database-name <NAME>;数据库名模糊或存在同名非 S3 Tables 表时须停止并交由 finding-data-lake-assets 处理。创建步骤包括:验证依赖(确认 AWS MCP 工具或 AWS CLI 可用,用 aws sts get-caller-identity 验证凭证与区域);理解并确认 schema;创建表桶 aws s3tables create-table-bucket --name <BUCKET_NAME> --region <REGION>;创建命名空间 aws s3tables create-namespace --table-bucket-arn <ARN> --namespace <NAMESPACE>;创建 Glue Data Catalog 集成(s3tablescatalog,每区域每账户一次);配置访问控制(使用 s3tables:* IAM 命名空间);创建表 aws s3tables create-table --table-bucket-arn <ARN> --namespace <NAMESPACE> --name <TABLE_NAME> --format ICEBERG --metadata '<METADATA_JSON>';最后用 aws s3tables get-table 验证并用 Athena DESCRIBE 确认可查询。
限制与注意:名称须全小写且不含连字符;partitionSpec.sourceId 必须引用有效字段 ID;复杂类型须用 schemaV2;SSE-KMS 需配置 KMS 密钥策略;不得在 CREATE TABLE 中指定 LOCATION;权限须使用 s3tables:* 而非 s3:*。若使用 Glue ETL 或 Athena DDL 路径,需先阅读对应参考文档。
适用场景:在 AWS 上构建数据湖表、需要 Iceberg 托管表与自动维护的团队。