Skip to content

Instantly share code, notes, and snippets.

@joerg
Created March 3, 2015 15:38
Show Gist options
  • Save joerg/766a69e41dbd9dc7f7f5 to your computer and use it in GitHub Desktop.
Save joerg/766a69e41dbd9dc7f7f5 to your computer and use it in GitHub Desktop.
INSTANCE_NAME=$(curl http://metadata/computeMetadata/v1/instance/attributes/INSTANCE_NAME -H "Metadata-Flavor: Google")
echo "I am here" > /tmp/test
echo $INSTANCE_NAME >> /tmp/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment