Create VPC subnet

Zone-scoped subnet bound to a network; CIDR must not overlap peers

yc vpc subnet create --name sub-a --network-name net-1 --range 10.0.0.0/24 --zone ru-central1-a

tool
yc32 commands
tags
ycnetworkvpccloud

More yc commands

  • yc vpc security-group update-rules <name> --add-rule 'direction=ingress,port=443,protocol=tcp,v4-cidrs=[0.0.0.0/0]'

    Add stateful SG rule; note: rules are evaluated as allow-list

  • yc load-balancer network-load-balancer get <name> --format json | jq '.listeners,.attached_target_groups'

    Dump NLB listeners and target groups to debug routing

  • yc application-load-balancer load-balancer list --format json | jq -r '.[]|[.name,.status]|@tsv'

    Enumerate ALB instances and health status across folder

  • yc dns zone create --name myzone --zone example.com. --public-visibility

    Public zone; FQDN trailing dot required, then delegate NS at registrar

  • yc dns zone add-records --name myzone --record '@ 600 A 1.2.3.4'

    Add apex A record with 600s TTL; @ means the zone root

all 32 yc commands