Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to our all-in-one script #36

Merged
merged 2 commits into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading