This provider can be used for managing YDB schema resources in managed or on-premise installations of YDB databases.
NOTE: API is experimental and can be changed or broken.
- ydb_table
- ydb_table_index
- ydb_table_changefeed
- ydb_external_data_source
- ydb_external_table
- ydb_secret
Acceptance tests live in internal/terraform/ and run real Terraform plans against a YDB instance. They require:
terraformCLI onPATH- a running YDB endpoint (local Docker is fine — see below)
TF_ACC=1(required by the Terraform SDK to enable acceptance tests)YDB_ACC_CONNECTION_STRING— full YDB connection string (e.g.grpc://127.0.0.1:2136/?database=/local)
Optional provider auth env vars: YDB_ACC_TOKEN, YDB_ACC_USER, YDB_ACC_PASSWORD.
docker run -d --rm --name ydb-local \
-p 2135:2135 -p 2136:2136 -p 8765:8765 \
-h localhost \
-e YDB_USE_IN_MEMORY_PDISKS=true \
-e YDB_FEATURE_FLAGS=enable_replace_if_exists_for_external_entities,enable_external_data_sources,enable_schema_secrets \
ydbplatform/local-ydb:25.4YDB_ACC_CONNECTION_STRING=grpc://127.0.0.1:2136/?database=/local TF_ACC=1 \
go test -v ./internal/terraform/... -timeout 30mYDB_ACC_CONNECTION_STRING=grpc://127.0.0.1:2136/?database=/local TF_ACC=1 \
go test -v ./internal/terraform/ -run TestAccYdbTopic_metricsLevel -timeout 30m