terraform-provider-linuxbox

linuxbox_swap Resource

Creates and mounts a /swapfile in the target machine.

Example Usage

provider "linuxbox" {}

resource "linuxbox_swap" "my_instance" {
  host_address = digitalocean_droplet.test.ipv4_address
  ssh_key      = tls_private_key.ssh_key.private_key_pem
  swap_size    = 10 * 1024 * 1024 # 10 GB
}

Argument Reference

Attribute Reference

None