compute

glavk/compute/yandex

Terraform Module HCL YANDEX

Terraform module which creates Compute resources on Yandex Cloud

Install
module "compute" {
source = "glavk/compute/yandex"
version = "0.1.15"
}
plain text: /constructs/tfmod-glavk-compute-yandex/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module for Yandex.Cloud Compute Terraform module which creates compute instance on Yandex.Cloud. Usage Before using this module, you need to configure provider (or copy versions.tf): ``terraform terraform { required_version = ">= 0.13" required_providers { yandex = { source = "yandex-cloud/yandex" version = ">= 0.47.0" } } } ` Preemtible instance (Spot instance) `terraform module "compute" { source = "glavk/compute/yandex" version = "0.1.13" image_family = "ubuntu-docker" subnet = "sn-dev-0" folder_id = "xxx" name = "development" hostname = "dev" is_nat = true cores = 2 memory = 4 size = "10" preemptible = true sg_id = ["xxx"] } ` Examples - Dev instance example Requirements | Name | Version | |------|---------| | terraform | >= 0.13 | | yandex | >= 0.47.0 | Providers | Name | Ve

Inputs (20)
NameTypeDescriptionDefault
namestringYandex Cloud Compute instance name required
subnetstringYandex VPC subnet required
sg_idlist(string)Security group ids for network interface required
folder_idstringYandex Cloud Folder ID where resources will be created required
image_familystringYandex Cloud Compute Image family required
hostnamestringHost name for the instance. This field is used to generate the instance fqdn val required
ssh_pubkeystringSSH public key for access to the instance"~/.ssh/id_rsa.pub"
platform_idstringThe type of virtual machine to create"standard-v2"
preemptibleboolSpecifies if the instance is preemptiblefalse
coresnumberCPU cores for the instance2
sizestringSize of the boot disk in GB"10"
zoneslist(string)Yandex Cloud Zones for provisoned resources[ "ru-central1-a", "ru-central1-b",
is_natboolProvide a public address for instance to access the internet over NATfalse
memorynumberMemory size for the instance in GB2
core_fractionnumberBaseline performance for a core as a percent100
nat_ip_addressstringPublic IP address for instance to access the internet over NAT""
ip_addressstringThe private IP address to assign to the instance. If empty, the address will be ""
secondary_disk_idstringID of the disk that is attached to the instance""
instance_countnumberYandex Cloud Compute instance count1
ssh_usernamestringUser for SSH access to the instance"ubuntu"
Outputs (3)
internal_ip — The internal IP address of the instance
external_ip — The external IP address of the instance
fqdn — The fully qualified DNS name of this instance
Resources (1)
yandex_compute_instance
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.15
Cloud YANDEX
★ Stars12
Forks6
Total downloads961
Inputs20
Outputs3
Resources1
Examples1
LicenseApache-2.0
Namespaceglavk
Updated