Amazon MSK system tables schema and example queries
This page describes the columns of the Amazon MSK system tables and provides example queries.
Table schemas
clusters
Full name: "s3tablescatalog/aws-catalog"."msk"."clusters". Partitioned by
bucket(32, id).
The clusters system table contains one row for each cluster in your account and Region.
The following table describes the columns of the clusters table.
| Column | Type | Required | Description |
|---|---|---|---|
|
|
Yes |
Unique identifier of the asset. |
|
|
Yes |
Time this asset record was ingested into the system table, in UTC. |
|
|
No |
Time the asset was last updated in the AWS Glue Data Catalog, in UTC. |
|
|
Yes |
Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
|
|
No |
Time the resource was created, in UTC. |
|
|
No |
The user-provided business name for the asset. |
|
|
No |
The user-provided business description for the asset. |
|
|
Yes |
The resource's technical name. |
|
|
No |
The resource's technical description. |
|
|
No |
The client authentication modes enabled for client-broker connections to the cluster. Values: Iam, Scram, Tls, Unauthenticated. |
|
|
No |
Indicates the encryption setting for data in transit between clients and brokers. TLS means that client-broker communication is enabled with TLS only. TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext data. PLAINTEXT means that client-broker communication is enabled in plaintext only. Values: TLS, TLS_PLAINTEXT, PLAINTEXT. |
|
|
No |
The provisioning type of the cluster. Values: PROVISIONED, SERVERLESS. |
|
|
No |
When set to Enabled, it indicates that data communication among the broker nodes of the cluster is encrypted. When set to Disabled, the communication happens in plaintext. Values: Enabled, Disabled. |
|
|
No |
The type of broker used in the Amazon MSK cluster. |
|
|
No |
The version of Apache Kafka. |
|
|
No |
The Apache Kafka metadata management mode. Values: Zookeeper, Kraft, Migration. |
|
|
No |
The network type of the cluster, which is IPv4 or DUAL. The DUAL network type uses both IPv4 and IPv6 addresses for your cluster and its resources. By default, a cluster uses the IPv4 network type. Values: IPV4, DUAL. |
|
|
No |
The number of broker nodes in the cluster. |
|
|
No |
Public access control for brokers. Values: DISABLED, SERVICE_PROVIDED_EIPS. |
|
|
No |
The state of an Apache Kafka cluster. Values: CREATING, ACTIVE, UPDATING, REBOOTING_BROKER, MAINTENANCE, HEALING, DELETING, FAILED. |
|
|
No |
This controls storage mode for supported storage tiers. Values: LOCAL, TIERED. |
|
|
No |
VpcConnectivity control for brokers. Values: Enabled, Disabled. |
|
|
No |
The client authentication modes enabled for client connections over VPC connectivity. Values: Iam, Scram, Tls, Unauthenticated. |
|
|
No |
The identifier of the AWS KMS key that encrypts the resource at rest, as the source service reports it: a key ID, key ARN, alias name or alias ARN. |
topics
Full name: "s3tablescatalog/aws-catalog"."msk"."topics". Partitioned by
bucket(32, id).
The topics system table contains one row for each topic in your account and Region.
The following table describes the columns of the topics table.
| Column | Type | Required | Description |
|---|---|---|---|
|
|
Yes |
Unique identifier of the asset. |
|
|
Yes |
Time this asset record was ingested into the system table, in UTC. |
|
|
No |
Time the asset was last updated in the AWS Glue Data Catalog, in UTC. |
|
|
Yes |
Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped. |
|
|
No |
Time the resource was created, in UTC. |
|
|
No |
The user-provided business name for the asset. |
|
|
No |
The user-provided business description for the asset. |
|
|
Yes |
The resource's technical name. |
|
|
No |
The resource's technical description. |
|
|
No |
The Kafka log cleanup policy: delete, compact, or compact,delete. |
|
|
No |
The Kafka compression codec for the topic. Values: producer, uncompressed, gzip, snappy, lz4, zstd. |
|
|
No |
The minimum number of in-sync replicas that must acknowledge a write when a producer sets acks to all. |
|
|
No |
The number of partitions configured for the topic. |
|
|
No |
The replication factor of the topic. |
|
|
No |
The maximum size in bytes a partition log can grow to before old log segments are discarded under the delete cleanup policy. |
|
|
No |
The topic retention period in milliseconds. |
|
|
No |
The Kafka topic ID. |
|
|
No |
Fully qualified identifier of the container asset this asset is a member of. |
Example queries
Clusters by public access and encryption in transit
SELECT cluster_type_enum, public_access_enum, client_broker_encryption_enum, count(*) AS clusters FROM "s3tablescatalog/aws-catalog"."msk"."clusters" GROUP BY 1, 2, 3;
Topics with a replication factor below 3
SELECT resource_name, replication_factor, min_insync_replicas, partition_count FROM "s3tablescatalog/aws-catalog"."msk"."topics" WHERE replication_factor < 3;