Yandex Cloud Provider
- YC Operations Guide
- Create compute_instance +Official.Guide
- Add SSH Key / Service Key
- Data Sources
- Labels
Установка Yandex CLI
Установка CLI в /opt/yc (~/.bashrc Неизменён)
curl https://storage.yandexcloud.net/yandexcloud-yc/install.sh | \
bash -s -- -i /opt/yc -nДобавление конфига в ~/.bashrc
echo -e "\n# Yandex Cloud CLI\n\
if [ -f '/opt/yc/path.bash.inc' ]; then source '/opt/yc/path.bash.inc'; fi\n\
if [ -f '/opt/yc/completion.bash.inc' ]; then source '/opt/yc/completion.bash.inc'; fi\n\
" >> ~/.bashrc
# Применение ~/.bashrc
. ~/.bashrcyc config set service-account-key ~/.ssh/yc.service.key
yc config set folder-id <>Управление Yandex Cloud
yc compute instance listyc compute instance get --full mon-do27yc iam service-account --folder-id b1gtv3uhmd1feqdajugp listyc config profile listyc config set cloud-id b1gm6imb36aoic2km8d0yc config set folder-id b1gtv3uhmd1feqdajugpyc compute instance start mon-do27