Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
#
# author: Gary A. Stafford
# site: https://programmaticponderings.com
# license: MIT License
# purpose: Delete GCP VM instance, IP address, and firewall rule
# usage: sh ./part2_clean_up.sh
# Constants - CHANGE ME!
readonly PROJECT='ansible-gce-demo'
readonly ZONE='us-east1-b'
time yes | gcloud compute instances delete web-1 \
--project $PROJECT --zone $ZONE
time yes | gcloud compute firewall-rules delete default-allow-http \
--project $PROJECT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.