Commit 9f792137 authored by kawsark's avatar kawsark

Added an example application

parent cbb4d667
Pipeline #91738345 passed with stages
in 37 seconds
......@@ -28,6 +28,8 @@ resource "google_compute_instance" "demo" {
// Ephemeral IP
}
}
metadata_startup_script = file("${path.module}/scripts/webapp.sh")
}
resource "random_string" "random-identifier" {
......
#This is a startup-script that will install an example application on the provisioned server
#!/bin/bash
sudo apt-get install git -y
cd /tmp
git clone https://github.com/hashicorp/demo-terraform-101.git
cp -r demo-terraform-101/assets .
cd assets
sudo chmod +x ./setup-web.sh
sudo ./setup-web.sh
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment