Deploy serverless container revision yc
Roll out a new revision from a CR image; note: concurrency caps in-flight 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
more yc
all 32 commands →
Read logs from a logging group since 1h
yc logging read --group-name <name> --since 1h --levels ERROR,WARN --format json | jq -r '.[] | "\(.timestamp) \(.level) \(.message)"'
Issue Let's Encrypt cert via Certificate Manager
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)"'
Switch active folder
yc config set folder-id <id> && yc config list
Create named profile
yc config profile create prod && yc config profile activate prod
Mint short-lived IAM token
export YC_TOKEN=$(yc iam create-token)