Skip to content

zetraison/yandex-cloud-terraform-iaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

YANDEX-CLOUD-TERRAFORM-IAAS

Examples of infrastructure as code tools include Yandex Cloud and Terraform.

Install YC CLI

curl https://storage.yandexcloud.net/yandexcloud-yc/install.sh | bash

Init YC CLI

yc init

Get token, cloud-id, folder-id

yc config list

Output:

token: xxx
cloud-id: xxx
folder-id: xxxx
compute-default-zone: ru-central1-a

Terraform

Set up terraform

Download and install terraform CLI from https://www.terraform.io/downloads

Set terraform mirror

nano ~/.terraformrc

with code

provider_installation {
  network_mirror {
    url = "https://terraform-mirror.yandexcloud.net/"
    include = ["registry.terraform.io/*/*"]
  }
  direct {
    exclude = ["registry.terraform.io/*/*"]
  }
}

About

Yandex Cloud Terraform IaaS templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published