Track new linode instance in terraform

The definition is pretty verbose. Apparently it does that if you create it through the UI
This commit is contained in:
Jake Howard
2020-12-05 13:25:50 +00:00
parent 6d75272d34
commit 48e23e8c00
6 changed files with 50 additions and 2 deletions

View File

@ -0,0 +1,38 @@
resource "linode_instance" "grimes" {
label = "grimes"
region = "eu-central"
type = "g6-nanode-1"
private_ip = true
config {
kernel = "linode/grub2"
label = "My Ubuntu 20.04 LTS Disk Profile"
devices {
sda {
disk_label = "Ubuntu 20.04 LTS Disk"
}
sdb {
disk_label = "512 MB Swap Image"
}
}
}
disk {
filesystem = "ext4"
label = "Ubuntu 20.04 LTS Disk"
read_only = false
size = 25088
}
disk {
filesystem = "swap"
label = "512 MB Swap Image"
read_only = false
size = 512
}
timeouts {}
}