compute-instance

darzanebor/compute-instance/yandex

Terraform Module HCL YANDEX

Yandex.Cloud Terraform Compute Instance module

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

Yandex.Cloud Terraform Cloud Instance module Example `` module "compute_instance" { source = "github.com/darzanebor/terraform-yandex-compute-instance.git" name = "my-vm" zone = "ru-central1-a" platform_id = "standard-v1" vpc_subnet_name = "ru-central1-a" vpc_security_groups = ["sg-default"] create_default_security_group = true ipv4_private_address = "10.10.10.10" nat_ip_address = "1.0.0.1" username = "default" password = "hashed_password" ssh_key = file("~/.ssh/id_rsa.pub") allow_stopping_for_update = true allocate_ipv4 = true allocate_ipv6 = false allocate_nat = false resources = { cores = 2 memory = 4 core_fraction = null } boot_disk = { name = "boot-disk-my-vm" type = "network-ssd" zone = "ru-central1-a" image_id = "fd80s5atj1quloqfr00f" labels = { environment = "test" } } dns_record =

Inputs (25)
NameTypeDescriptionDefault
vpc_subnet_namestring(Required) VPC subnet to place the instance. required
vpc_security_groupslist(Optional) - Assign security groups to instance.[]
dns_recordmap(Optional) List of configurations for creating ipv4 DNS records. The structure i{}
ipv6_dns_recordmap(Optional) List of configurations for creating ipv6 DNS records. The structure i{}
user_datastring(Optional) Custom user-data for compute instance.""
namestring(Optional) Resource name.null
resourcesmap(Required) Compute resources that are allocated for the instance.{}
nat_public_ip_addressstring(Optional) Provide a public address, for instance, to access the internet over Nnull
create_default_security_groupbool(Optional) - Create default security group.false
boot_diskmap(Required) The boot disk for the instance.{}
nat_dns_recordmap(Optional) List of configurations for creating ipv4 NAT DNS records. The structu{}
ssh_keystring(Optional) Provide public ssh_key to assign to user on compute instance.""
user_groupsstring(Optional) Provide groups to assign to user on compute instance."sudo"
allow_stopping_for_updatebool(Optional) Custom user-data for compute instance.false
platform_idstring(Optional) The type of virtual machine to create. The default is 'standard-v1'.null
allocate_ipv4bool(Optional) Allocate an IPv4 address for the interface. The default value is truetrue
default_security_group_egresslist(Optional) - A list of egress rules to create with default security group.[]
usernamestring(Optional) Provide username for creation on instance with cloud-init.""
allocate_natbool(Optional) Provide a public address, for instance, to access the internet over Nfalse
default_security_group_ingresslist(Optional) - A list of ingress rules to create with default security group.[]
passwordstring(Optional) Provide password for creation on instance with cloud-init for user.""
Outputs (3)
yandex_compute_instance
yandex_vpc_security_group
yandex_compute_disk_boot
Resources (3)
yandex_compute_diskyandex_compute_instanceyandex_vpc_security_group
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.1
Cloud YANDEX
★ Stars2
Forks0
Total downloads102
Inputs25
Outputs3
Resources3
Namespacedarzanebor
Updated