Fixed typos in scripts
This commit is contained in:
22
main.tf
22
main.tf
@ -6,24 +6,14 @@ resource "digitalocean_ssh_key" "default" {
|
||||
|
||||
# Create a new Web Droplet in the nyc2 region
|
||||
resource "digitalocean_droplet" "web" {
|
||||
image = "ubuntu-22-04-x64"
|
||||
name = "wireguard"
|
||||
region = "nyc1"
|
||||
size = "s-2vcpu-4gb"
|
||||
ssh_keys = [digitalocean_ssh_key.default.fingerprint]
|
||||
image = "ubuntu-22-04-x64"
|
||||
name = "wireguard"
|
||||
region = "nyc1"
|
||||
size = "s-2vcpu-4gb"
|
||||
ssh_keys = [digitalocean_ssh_key.default.fingerprint]
|
||||
user_data = file("setup.sh")
|
||||
connection {
|
||||
host = digitalocean_droplet.web.ipv4_address
|
||||
type = "ssh"
|
||||
user = "root"
|
||||
private_key = "${file("./tf-digitalocean")}"
|
||||
}
|
||||
|
||||
provisioner "remote-exec" {
|
||||
inline = [ "cat /root/wireguard-conf/client-config.conf" ]
|
||||
}
|
||||
}
|
||||
|
||||
output "droplet_output" {
|
||||
value = digitalocean_droplet.web.ipv4_address
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user