Skip to content

Commit

Permalink
Fixes to our all-in-one script (#36)
Browse files Browse the repository at this point in the history
Point it two new repo and change name of resources to avoid collisions.
  • Loading branch information
jakozaur authored May 6, 2024
1 parent 1ae5e23 commit 1e31736
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docker/deploy/quesma-all-in-one-vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ variable "allowed_ports" {

variable "copy_repo_files" {
type = list(string)
default = ["docker/.env", "docker/ngrok/ngrok.yml"]
default = ["docker/.env"]
}

locals {
Expand All @@ -48,7 +48,7 @@ locals {

resource "google_compute_instance" "vm_instance" {

name = "${var.user}-quesma-aio-vm"
name = "${var.user}-quesma-demo-aio-vm"
machine_type = "n1-standard-8"
zone = "europe-central2-a"

Expand Down Expand Up @@ -102,7 +102,7 @@ github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+V
# Start SSH agent and add key
eval "$(ssh-agent -s)"
ssh-add /home/quesma/.ssh/id_ed25519
sudo -u quesma git clone [email protected]:QuesmaOrg/poc-elk-mitmproxy.git /home/quesma/source
sudo -u quesma git clone [email protected]:QuesmaOrg/quesma.git /home/quesma/source
sudo usermod -aG docker quesma
cd /home/quesma/source
Expand All @@ -118,9 +118,8 @@ github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+V
}

resource "google_compute_firewall" "quesma_aio_allowed_ports" {
name = "${var.user}-quesma-aio-allowed-ports"
name = "${var.user}-quesma-demo-aio-allowed-ports"
network = "default"

allow {
protocol = "tcp"
ports = var.allowed_ports
Expand Down

0 comments on commit 1e31736

Please sign in to comment.