-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d76d03f
commit c8e450b
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
gcloud compute networks create taw-custom-network --subnet-mode custom | ||
gcloud compute networks subnets create subnet-us-central \ | ||
--network taw-custom-network \ | ||
--region us-central1 \ | ||
--range 10.0.0.0/16 | ||
gcloud compute networks subnets create subnet-europe-west \ | ||
--network taw-custom-network \ | ||
--region europe-west1 \ | ||
--range 10.1.0.0/16 | ||
gcloud compute networks subnets create subnet-asia-east \ | ||
--network taw-custom-network \ | ||
--region asia-east1 \ | ||
--range 10.2.0.0/16 | ||
gcloud compute networks subnets list \ | ||
--network taw-custom-network | ||
gcloud compute firewall-rules create nw101-allow-http \ | ||
--allow tcp:80 --network taw-custom-network --source-ranges 0.0.0.0/0 \ | ||
--target-tags http | ||
gcloud compute firewall-rules create "nw101-allow-icmp" --allow icmp --network "taw-custom-network" --target-tags rules | ||
gcloud compute firewall-rules create "nw101-allow-internal" --allow tcp:0-65535,udp:0-65535,icmp --network "taw-custom-network" --source-ranges "10.0.0.0/16","10.2.0.0/16","10.1.0.0/16" | ||
gcloud compute firewall-rules create "nw101-allow-ssh" --allow tcp:22 --network "taw-custom-network" --target-tags "ssh" | ||
gcloud compute firewall-rules create "nw101-allow-rdp" --allow tcp:3389 --network "taw-custom-network" | ||
gcloud compute instances create us-test-01 \ | ||
--subnet subnet-us-central \ | ||
--machine-type=e2-medium \ | ||
--zone us-central1-a \ | ||
--tags ssh,http,rules | ||
gcloud compute instances create europe-test-01 \ | ||
--subnet subnet-europe-west \ | ||
--zone europe-west1-b \ | ||
--tags ssh,http,rules | ||
gcloud compute instances create asia-test-01 \ | ||
--subnet subnet-asia-east \ | ||
--zone asia-east1-a \ | ||
--tags ssh,http,rules |