yc vpc subnet list
yc compute zone list
yc compute instance create \
--name first-instance \
--hostname first-instance \
--zone ru-central1-b \
--network-interface subnet-name=default-ru-central1-b,nat-ip-version=ipv4 \
--create-boot-disk image-folder-id=standard-images,image-family=ubuntu-2004-lts \
--create-disk name=second-disk,size=5GB,auto-delete \
--ssh-key ~/.ssh/id_rsa.pub
yc compute instance list
yc compute instance get first-instance --format json | jq -r '.network_interfaces[].primary_v4_address.one_to_one_nat.address'
ssh yc-user@ip
yc compute instance delete first-instance
Links:
- yandex-cloud/terraform-provider-yandex#130
- https://github.com/sport24ru/terraform-yandex-managed-kubernetes/blob/master/main.tf
- https://vc.ru/dev/318266-kak-sekonomit-vremya-dengi-i-nervy-na-prostyh-zadachah
- yandex-cloud/terraform-provider-yandex#121
- https://habr.com/ru/company/rebrainme/blog/538410/