Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing endpoints for regions other than in Russia #166

Open
lxhan opened this issue Jul 16, 2024 · 0 comments
Open

Changing endpoints for regions other than in Russia #166

lxhan opened this issue Jul 16, 2024 · 0 comments

Comments

@lxhan
Copy link

lxhan commented Jul 16, 2024

I'm using sdk in github actions and my region is kz, so I had to fork existing github action and change all hardcoded endpoints in action code and also inside @yandex-cloud/nodejs-sdk. And while this "hack" is working but I would appreciate if there is a way to change it when initializing sdk for ex.

import { IamTokenService } from "@yandex-cloud/nodejs-sdk/dist/token-service/iam-token-service";

const tokenService = new IamTokenService(serviceAccountJson, "OPTIONAL ENDPOINT");
const token = await tokenService.getToken();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant