Skip to content

Instantly share code, notes, and snippets.

@cornet
Last active June 19, 2019 21:23
Show Gist options
  • Save cornet/4de8d963191e997c6c75405239e6acb4 to your computer and use it in GitHub Desktop.
Save cornet/4de8d963191e997c6c75405239e6acb4 to your computer and use it in GitHub Desktop.
resource "scaleway_server" "docker" {
name = "${var.name}"
image = "${data.scaleway_image.docker.id}"
type = "${var.type}"
security_group = "${scaleway_security_group.docker.id}"
enable_ipv6 = "${var.ipv6}"
public_ip = "${scaleway_ip.ip.ip}"
provisioner "file" {
source = "${path.module}/files/mount_volume.sh"
destination = "/home/debian/mount_volume.sh"
connection {
type = "ssh"
user = "debian"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment