Create named profile
Isolate creds per env; use yc --profile prod or YC_PROFILE in CI
yc config profile create prod && yc config profile activate prod
- tool
- yc32 commands
More yc commands
-
export YC_TOKEN=$(yc iam create-token)OAuth->IAM token, ~12h TTL; feed to API/Terraform via YC_TOKEN env
-
yc iam service-account create --name sa-ci --description 'CI deployer'Create SA for pipelines; bind least-privilege roles separately
-
yc iam key create --service-account-name sa-ci --output key.jsonAuthorized key JSON for non-interactive auth; note: rotate & vault it
-
yc resource-manager folder add-access-binding <id> --role editor --service-account-name sa-ciScope-bind a role at folder level; prefer narrow roles over editor
-
yc managed-kubernetes cluster get-credentials <name> --external --forceMerge external endpoint into kubeconfig; drop --external for internal VPC