Changing endpoints for regions other than in Russia
lxhan opened this issue · comments
Alex Han commented
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();