Skip to content

Instantly share code, notes, and snippets.

@RajeshChouhan21
RajeshChouhan21 / terraform-ssh-remote-exec.tf
Created June 28, 2021 09:34 — forked from toshimaru/terraform-ssh-remote-exec.tf
How to connect to server via SSH and use remote-exec provisioner.
resource "digitalocean_droplet" "web" {
image = "ubuntu-16-04-x64"
name = "web-1"
region = "sgp1"
size = "512mb"
ssh_keys = [12345]
connection {
type = "ssh"
user = "root"