Но при запуске python3 main.py -e grpcs://... -d /.... выкидывает ошибку:
ydb.issues.ConnectionFailure: Failed to resolve endpoints for database /ru-central1/b1g2bersgefc02cth1fe/etnn65gk9esm2nv0288a. Endpoint: "lb.etnn65gk9esm2nv0288a.ydb.mdb.yandexcloud.net:2135". Error details:
MetadataUrlCredentials: 404 Client Error: Not Found for url: http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token.
Check that metadata service configured properly and application deployed in VM or function at Yandex.Cloud.
Этот 169.254.169.254 откуда появляется? Он не пингуется ни с локальной машины, ни из vm.
https://cloud.yandex.ru/docs/compute/operations/vm-info/get-info#inside-instance
Спасибо. Получается, что ydb-python-sdk/examples/basic_example_v1 можно запускать только из vm с подключенный сервисным аккаунтом, с локалки не получится.
Получится. Но надо указать креды
Обсуждают сегодня