Setup Linode Volume Storage with Terraform and Ansible

Originally published at: Setup Linode Volume Storage with Terraform and Ansible - Stereowrench

First, setup a Terraform provider as described in Simple WordPress setup with 1Password, Terraform, Ansible, and Docker on Linode. Then add the following to main.tf: resource "linode_instance" "foobaz" { type = "g6-nanode-1" image = "linode/ubuntu22.04" region = "us-east" tags = ["foobaz"] authorized_keys = [var.ssh_key] } resource "linode_volume" "foobar" { label = "foo-volume" region = linode_instance.foobaz.region…