diff --git a/scripts/gcp-clean.sh b/scripts/gcp-clean.sh deleted file mode 100644 index e80f14d..0000000 --- a/scripts/gcp-clean.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -## Clean VM in prep for (re)running VM work - -echo "=== gcp-clean-vm.sh" - -## Cleanup for 06_running_analysis -sudo apt remove --yes git -rm -rf ~/CLASS-Examples diff --git a/scripts/gcp-vpc-create-default.sh b/scripts/gcp-vpc-create-default.sh new file mode 100755 index 0000000..b6a8485 --- /dev/null +++ b/scripts/gcp-vpc-create-default.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +## Create a default VPC similar to the GCP default. +echo "=== gcp-vpc-create-default.sh" + +echo "+++ creating the default VCP network allowing internal traffic and external ssh and ICMP access" +gcloud compute networks create default +gcloud compute firewall-rules create default-allow-internal --network default --allow all --source-ranges=10.128.0.0/9 +gcloud compute firewall-rules create default-allow-external --network default --allow tcp:22,icmp