From 4f02642486fd493f81ace461d72746390afa66d6 Mon Sep 17 00:00:00 2001 From: garrettfoster13 <82191679+garrettfoster13@users.noreply.github.com> Date: Thu, 3 Feb 2022 15:39:10 -0800 Subject: [PATCH 1/3] Update templates.go --- templates.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates.go b/templates.go index a4cbb07..8f1a087 100644 --- a/templates.go +++ b/templates.go @@ -8,6 +8,14 @@ provider "digitalocean" { token = "${var.do_token}" } +terraform { + required_providers { + digitalocean = { + source = "digitalocean/digitalocean" + } + } +} + {{range .}} resource "digitalocean_droplet" "{{.Name}}" { image = "ubuntu-14-04-x64" From 427e79580fb9c64975031eb6efc44c2ec48b500c Mon Sep 17 00:00:00 2001 From: garrettfoster13 <82191679+garrettfoster13@users.noreply.github.com> Date: Thu, 3 Feb 2022 15:40:41 -0800 Subject: [PATCH 2/3] Update main.go --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c2f0b91..e35c920 100644 --- a/main.go +++ b/main.go @@ -220,11 +220,12 @@ func createTunnels(computerUsers map[string]string) []*os.Process { continue } ip := strings.TrimSpace(splitOutput[1]) + ip2 := strings.Trim(ip, "\"") computerName := strings.TrimSpace(splitOutput[0]) port := fmt.Sprintf("%d", *startPort) var host string if user, ok := computerUsers[computerName]; ok { - host = fmt.Sprintf("%s@%s", user, ip) + host = fmt.Sprintf("%s@%s", user, ip2) } fmt.Printf("creating tunnel to %s on %s\n", host, port) cmd := exec.Command("ssh", "-D", port, "-N", "-o", "StrictHostKeyChecking=no", "-i", *sshLocation, host) From 8502a6b167bbb1c5f5c1a843bf2cd40fd966903b Mon Sep 17 00:00:00 2001 From: garrettfoster13 <82191679+garrettfoster13@users.noreply.github.com> Date: Mon, 29 Aug 2022 15:08:39 -0700 Subject: [PATCH 3/3] Update templates.go updated retired ami --- templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates.go b/templates.go index 8f1a087..f1cf3b3 100644 --- a/templates.go +++ b/templates.go @@ -154,7 +154,7 @@ data "aws_ami" "{{$name}}" { filter { name = "name" - values = ["amzn2-ami-hvm-2.0.2018*"] + values = ["amzn2-ami-hvm-2.0.2022*"] } filter {