Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
08sm80 committed Oct 4, 2024
1 parent 1dab60a commit 7841dca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ resource "google_compute_instance" "gce_vm1" {
ninja = "level-1"
enable-oslogin = false
startup-script = <<-EOT
#! /bin/bash
sudo apt update
sudo apt install busybox -y
echo "Hello, World" > index.xhtml
nohup busybox httpd -f -p 8080 &
EOT
#!/bin/bash
sudo apt update && sudo apt upgrade -y
sudo apt install busybox -y
echo "Hello, World" > index.xhtml
nohup busybox httpd -f -p 8000 &
EOT
}


Expand All @@ -60,7 +60,7 @@ resource "google_compute_firewall" "basic_access" {
name = "basic-access"
allow {
protocol = "TCP"
ports = ["80", "443", "22", "8080"]
ports = ["80", "443", "22", "8000"]
}
source_ranges = ["0.0.0.0/0"]
}
1 change: 1 addition & 0 deletions provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ terraform { # terraform provider for GCP
}
}
}

0 comments on commit 7841dca

Please sign in to comment.