Deploy a serverless container revision

Deploy a new revision from a Container Registry image; --concurrency limits parallel requests per instance.

yc serverless container create --name <name>; yc serverless container revision deploy --container-name <name> --image cr.yandex/<id>/<name>:<id> --cores 1 --memory 512M --service-account-id <id> --concurrency 4

tool
yc32 commands
tags
yccloudci

More yc commands

  • yc logging read --group-name <name> --since 1h --levels ERROR,WARN --format json | jq -r '.[] | "\(.timestamp) \(.level) \(.message)"'

    Read Cloud Logging entries with ERROR and WARN levels only; --since also takes values like 30m.

  • yc certificate-manager certificate request --name <name> --domains <host>,*.<host> && yc certificate-manager certificate list --format json | jq -r '.[] | "\(.name)\t\(.status)\t\(.not_after)"'

    Request a certificate for a domain and its wildcard, then check the status; it is issued only after DNS or HTTP validation.

  • yc config set folder-id <id> && yc config list

    Set the default folder-id for the active profile and check it with config list.

  • yc config profile create prod && yc config profile activate prod

    Keep credentials separate for each environment; in CI, use yc --profile prod or YC_PROFILE.

  • export YC_TOKEN=$(yc iam create-token)

    Create an IAM token for the current profile (valid for about 12 hours) and pass it to the API or Terraform via YC_TOKEN.

all 32 yc commands