github.com/candidpartners/terraform@v0.9.5-0.20171005231213-29f5f88820f6/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