@@ -24,7 +24,7 @@ export MACHINE_TYPE=e2-standard-2
2424export RANGE=10.0.0.0/24
2525```
2626
27- Create a service account:
27+ Create a service account.
2828
2929``` bash
3030gcloud iam service-accounts create anomstack-service-account \
@@ -33,34 +33,45 @@ gcloud iam service-accounts create anomstack-service-account \
3333 --display-name=" Anomstack service account"
3434```
3535
36- Create the VPC network for Anomstack:
36+ Create the VPC network for Anomstack.
3737
3838``` bash
39- # Create the VPC network
4039gcloud compute networks create anomstack --project=$PROJECT_ID
40+ ```
41+
42+ Create the subnet.
4143
42- # Create the subnet
44+ ``` bash
4345gcloud compute networks subnets create anomstack \
4446 --network=anomstack \
4547 --region=$REGION \
4648 --range=$RANGE \
4749 --project=$PROJECT_ID
50+ ```
51+
52+ Create the firewall rule to allow traffic.
4853
49- # Create the firewall rule to allow traffic
54+ ``` bash
5055gcloud compute firewall-rules create allow-anomstack-internal \
5156 --network=anomstack \
5257 --allow=tcp,udp,icmp \
5358 --source-ranges=$RANGE \
5459 --project=$PROJECT_ID
60+ ```
61+
62+ Create the firewall rule to allow SSH traffic.
5563
56- # Create the firewall rule to allow SSH traffic
64+ ``` bash
5765gcloud compute firewall-rules create allow-ssh \
5866 --network=anomstack \
5967 --allow=tcp:22 \
6068 --source-ranges=$YOUR_IP_ADDRESS \
6169 --project=$PROJECT_ID
70+ ```
71+
72+ Create the firewall rule to allow traffic to Dagster UI.
6273
63- # Create the firewall rule to allow traffic to Dagster UI
74+ ``` bash
6475gcloud compute firewall-rules create allow-anomstack-3000 \
6576 --network=anomstack \
6677 --allow=tcp:3000 \
@@ -71,7 +82,6 @@ gcloud compute firewall-rules create allow-anomstack-3000 \
7182Create the VM:
7283
7384``` bash
74- # Create the VM
7585gcloud compute instances create $INSTANCE_NAME \
7686--project=$PROJECT_ID \
7787--zone=$ZONE \
0 commit comments