instance

egee-irl/instance/linode

Terraform Module HCL LINODE

A simple Terraform module for creating instances in Linode.

Install
module "instance" {
source = "egee-irl/instance/linode"
version = "1.0.1"
}
plain text: /constructs/tfmod-egee-irl-instance-linode/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-linode-instance A simple Terraform module for creating StackScript-ready instances in Linode. Usage Create a .tf file with a module like this: ``hcl module "linode" { source = "github.com/egee-irl/terraform-linode-instance.git" authorized_keys = ["${chomp(file("./id_rsa.pub"))}"] type = "g6-nanode-1" region = "us-central" image = "linode/ubuntu18.04" root_pass = "Terra4ormr0x!" } `` You can view a demo using this module here. Inputs All inputs are optional. View the variables.tf file for more detailed information about the outputs. | Name | Default | | ---------------- | -------------------- | | root_pass | changeME007.. | | private_ip | true | | backups_enabled | false | | region | us-central | | image | linode/ubuntu18.04 | | label | Created by Terraform | | type | g6-standard-

Inputs (12)
NameTypeDescriptionDefault
root_passstringThe initial password for the root user account"changeME007.."
private_ipstringWhether or not you want a private ip address for your instancetrue
backups_enabledstringWhether or not to enable backupsfalse
regionstringThe region/data-center to deploy the instance in"us-central"
imagestringThe Linux image to use"linode/ubuntu18.04"
tagslistAn optional list of tags[]
typestringInstance type or size"g6-standard-4"
authorized_keyslistYour authorized keys. Be sure to chomp() it first[]
stackscript_datamapOptional map of StackScript UDF data.{}
labelstringOptional label to display for the instance"Created by Terraform"
authorized_userslistYour authorized users[]
stackscript_idstringThe ID of the StackScript you want to use"1"
Outputs (2)
public_ip — The public IP address for the Linode instance
root_password — The password for the root user on the Linode instance
Resources (1)
linode_instance
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud LINODE
★ Stars2
Forks3
Total downloads794
Inputs12
Outputs2
Resources1
LicenseMIT
Namespaceegee-irl
Updated