instance
egee-irl/instance/linode
A simple Terraform module for creating instances in Linode.
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-
| Name | Type | Description | Default |
|---|---|---|---|
| root_pass | string | The initial password for the root user account | "changeME007.." |
| private_ip | string | Whether or not you want a private ip address for your instance | true |
| backups_enabled | string | Whether or not to enable backups | false |
| region | string | The region/data-center to deploy the instance in | "us-central" |
| image | string | The Linux image to use | "linode/ubuntu18.04" |
| tags | list | An optional list of tags | [] |
| type | string | Instance type or size | "g6-standard-4" |
| authorized_keys | list | Your authorized keys. Be sure to chomp() it first | [] |
| stackscript_data | map | Optional map of StackScript UDF data. | {} |
| label | string | Optional label to display for the instance | "Created by Terraform" |
| authorized_users | list | Your authorized users | [] |
| stackscript_id | string | The ID of the StackScript you want to use | "1" |
public_ip — The public IP address for the Linode instanceroot_password — The password for the root user on the Linode instance