-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to our all-in-one script (#36)
Point it two new repo and change name of resources to avoid collisions.
- Loading branch information
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
|
@@ -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" | ||
|
||
|
@@ -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 | ||
|
@@ -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 | ||
|