Skip to content

Changing endpoints for regions other than in Russia #166

@lxhan

Description

@lxhan

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions