We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0c9e662 + b946430 commit 29316f0Copy full SHA for 29316f0
examples/service-account-credentials/main.py
@@ -26,8 +26,10 @@ def main():
26
# specify YDB_DATABASE environment variable.
27
database=os.getenv("YDB_DATABASE"),
28
# construct the service account credentials instance
29
+ # service account key should be in the local file,
30
+ # and SA_KEY_FILE environment variable should point to it
31
credentials=ydb.iam.ServiceAccountCredentials.from_file(
- "~/.ydb/sa.json",
32
+ os.getenv("SA_KEY_FILE"),
33
),
34
)
35
0 commit comments