github.com/adrian-bl/terraform@v0.7.0-rc2.0.20160705220747-de0a34fc3517/examples/google-two-tier/scripts/install.sh (about) 1 #!/bin/bash -xe 2 3 RESOURCE_INDEX=$1 4 apt-get -y update 5 apt-get -y install nginx 6 IP=$(curl -s -H "Metadata-Flavor:Google" http://metadata/computeMetadata/v1/instance/network-interfaces/0/ip) 7 echo "Welcome to Resource ${RESOURCE_INDEX} - ${HOSTNAME} (${IP})" > /usr/share/nginx/html/index.html 8 service nginx start