Created
August 10, 2019 17:11
-
-
Save mesmacosta/d1898690310a495a5b0a9febe3a8a4be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcloud logging write batch-execution "Hello world from $(hostname)." | |
| gcp_zone=$(curl -H Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/zone -s | cut -d/ -f4) | |
| gcloud compute instances delete $(hostname) --zone ${gcp_zone} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment