yandex_yq_ydb_connection (Resource)
Статья создана
Обновлена 11 сентября 2025 г.
Manages YDB connection in Yandex Query service. For more information, see the official documentation.
Example usage
//
// Create a new YDB connection.
//
resource "yandex_yq_ydb_connection" "my_ydb_connection" {
name = "tf-test-ydb-connection"
description = "Connection has been created from Terraform"
database_id = "db_id"
service_account_id = yandex_iam_service_account.for-yq.id
}
Schema
Required
database_id(String) The database identifier.name(String) The resource name.
Optional
description(String) The resource description.service_account_id(String) The service account ID to access resources on behalf of.
Read-Only
id(String) The resource identifier.
Import
The resource can be imported by using their resource ID. For getting the resource ID you can use Yandex Cloud Web Console
# terraform import yandex_yq_ydb_connection.<resource Name> <resource Id>
terraform import yandex_yq_ydb_connection.my_ydb_connection ...