Skip to content

Commit dd49b9e

Browse files
committed
update to tutorials
1 parent dea723b commit dd49b9e

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

example-custom-machine-types/README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ This example creates an instance with a custom machine type, a bastion host and
1010

1111
## Install Terraform
1212

13-
Install Terraform if it is not already installed (visit [terraform.io](https://terraform.io) for other distributions):
13+
1. Install Terraform if it is not already installed (visit [terraform.io](https://terraform.io) for other distributions):
1414

1515
```
1616
./terraform-install.sh
1717
```
1818

19-
## Set up the environment
19+
## Change to the example directory
2020

2121
```
2222
cd example-custom-machine-types/
2323
```
2424

25-
Set the project, replace `YOUR_PROJECT` with your project ID:
25+
## Set up the environment
26+
27+
1. Set the project, replace `YOUR_PROJECT` with your project ID:
2628

2729
```
2830
PROJECT=YOUR_PROJECT
@@ -32,14 +34,16 @@ PROJECT=YOUR_PROJECT
3234
gcloud config set project ${PROJECT}
3335
```
3436

37+
2. Configure the environment for Terraform:
38+
3539
```
3640
[[ $CLOUD_SHELL ]] || gcloud auth application-default login
3741
export GOOGLE_PROJECT=$(gcloud config get-value project)
3842
```
3943

4044
## Configure remote backend
4145

42-
Configure Terraform [remote backend](https://www.terraform.io/docs/backends/types/gcs.html) for the state file.
46+
1. Configure Terraform [remote backend](https://www.terraform.io/docs/backends/types/gcs.html) for the state file.
4347

4448
```
4549
BUCKET=${GOOGLE_PROJECT}-terraform
@@ -68,35 +72,35 @@ terraform apply
6872

6973
## Testing
7074

71-
SSH into the bastion host with port forwarding to Cerebro and Kibana:
75+
1. SSH into the bastion host with port forwarding to Cerebro and Kibana:
7276

7377
```
7478
eval $(ssh-agent)
7579
ssh-add ~/.ssh/google_compute_engine
7680
eval $(terraform output bastion)
7781
```
7882

79-
SSH into the custom machine:
83+
2. SSH into the custom machine:
8084

8185
```
8286
ssh tf-custom-1
8387
```
8488

85-
Verify external IP is the IP of the NAT gateway:
89+
3. Verify external IP is the IP of the NAT gateway:
8690

8791
```
8892
curl http://ipinfo.io/ip
8993
```
9094

9195
## Cleanup
9296

93-
Exit the ssh sessions:
97+
1. Exit the ssh sessions:
9498

9599
```
96100
exit
97101
```
98102

99-
Remove all resources created by terraform:
103+
2. Remove all resources created by terraform:
100104

101105
```
102106
terraform destroy

0 commit comments

Comments
 (0)