Skip to main content

Yandex Cloud

Установка 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
. ~/.bashrc

Активация сервисного ключа

yc config set service-account-key ~/.ssh/yc.service.key
yc config set folder-id <>
Yandex Cloud Provider
Create compute_instance +Official.Guide Add SSH Key / Service Key Data Sources Labels