[stage-1] complete pre-configuration and terraform init

This commit is contained in:
2023-03-15 10:22:16 +07:00
parent dc0c700b96
commit d92c0da0e3
9 changed files with 161 additions and 1 deletions

28
terraform/provider.tf Normal file
View File

@@ -0,0 +1,28 @@
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
}
}
required_version = ">= 0.13"
backend "s3" {
endpoint = "storage.yandexcloud.net"
bucket = "bucket"
region = "ru-central1"
key = "tf/state.tfstate"
access_key = "access_key"
secret_key = "secret_key"
skip_region_validation = true
skip_credentials_validation = true
}
}
provider "yandex" {
token = var.yandex_cloud_token
cloud_id = var.yandex_cloud_id
folder_id = var.yandex_folder_id
zone = "ru-central1-a"
}