yandex_ydb_table_changefeed (Resource)
Статья создана
Обновлена 9 февраля 2026 г.
Yandex Database table changefeed
Example usage
//
// Create a new YDB Table Change feed.
//
resource "yandex_ydb_table_changefeed" "ydb_changefeed" {
table_id = yandex_ydb_table.test_table_2.id
name = "changefeed"
mode = "NEW_IMAGE"
format = "JSON"
consumer {
name = "test_consumer"
}
}
Arguments & Attributes Reference
connection_string(String). Connection string, conflicts withtable_id.format(Required)(String). Changefeed format.id(String).mode(Required)(String). Changefeed mode .name(Required)(String). Changefeed name.retention_period(String). Time of data retention in the topic, ISO 8601 format.table_id(String). Terraform resource ID of the table.table_path(String). Table path.virtual_timestamps(Bool). Use virtual timestamps .consumer[Block]. Changefeed consumers - named entities for reading data from the topic.important(Bool).name(Required)(String). Consumer name. It is used in the SDK or CLI to read data from the topic.starting_message_timestamp_ms(Number). Timestamp in the UNIX timestamp format, from which the consumer will start reading data.supported_codecs(List Of String). Supported data encodings.
Import
The resource can be imported by using their resource ID. For getting it you can use Yandex Cloud Web Console
# terraform import yandex_ydb_table_changefeed.<resource Name> <resource Id>
terraform import yandex_ydb_table_changefeed.ydb_changefeed ...