Skip to content

Commit 1e943f9

Browse files
committed
update to 0.12 syntax
1 parent 2660ad9 commit 1e943f9

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

main.tf

+6-5
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ module "vm" {
88
name = "algo-image_${random_id.vm_suffix.hex}"
99
region = "us-east"
1010
type = "g6-standard-1"
11-
algo_repo = "${var.algo_repo}"
11+
algo_repo = var.algo_repo
1212
source_image_id = "linode/ubuntu18.04"
13-
ssh_keys = ["${var.ssh_keys}"]
14-
ssh_users = ["${var.ssh_users}"]
13+
ssh_keys = [var.ssh_keys]
14+
ssh_users = [var.ssh_users]
1515
}
1616

1717
resource "linode_image" "image" {
18-
linode_id = "${module.vm.linode_id}"
19-
disk_id = "${module.vm.disk_id}"
18+
linode_id = module.vm.linode_id
19+
disk_id = module.vm.disk_id
2020
label = "algo-image"
2121
description = "Created by Terraform"
2222
}
23+

outputs.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
output "image_id" {
2-
value = "${linode_image.image.id}"
2+
value = linode_image.image.id
33
description = "ID of the Algo Image"
44
}
5+

variables.tf

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
variable "algo_repo" {
2-
type = "string"
2+
type = string
33
default = "https://github.com/akerl/algo"
44
description = "Repo to use for Algo code"
55
}
66

77
variable "ssh_keys" {
8-
type = "list"
8+
type = list(string)
99
description = "SSH public keys used to log in as root to the server"
1010
default = []
1111
}
1212

1313
variable "ssh_users" {
14-
type = "list"
14+
type = list(string)
1515
description = "List of authorized users (Linode usernames, must have keys already assigned via Linode API)"
1616
default = []
1717
}
18+

0 commit comments

Comments
 (0)