terraform-provider-linuxbox

linuxbox_text_file Resource

Creates a file on the target host if missing.

Example Usage

resource "linuxbox_text_file" "authorized_keys" {
  host_address = digitalocean_droplet.test.ipv4_address
  ssh_key      = tls_private_key.ssh_key.private_key_pem

  path  = "/root/.ssh/authorized_keys"
  content = <<CONTENT
  # ...
  CONTENT
  owner = 0
  group = 0
  mode  = 600
}

Argument Reference

Attribute Reference

None