Skip to content

Commit c754ec6

Browse files
committed
Remove commands that use locally unzipped terraform executable
An updated GCP disk image is being used that has Terraform 0.12 installed, so it is not necessary to download Terraform and run it from a local directory.
1 parent 63a2688 commit c754ec6

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

getting-started/gcp/cloudshell_tutorial.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,40 @@
44

55
### Download
66

7+
Terraform v0.12 is installed in this disk image. If you need to download Terraform, it's available at this link:
8+
79
[Download Terraform](https://www.terraform.io/downloads.html)
810

11+
To download, use a command line tool like `wget` on Linux or Mac:
12+
913
```
1014
wget https://releases.hashicorp.com/terraform/0.12.2/terraform_0.12.2_linux_amd64.zip
1115
```
1216

1317
### Unzip
1418

19+
Unzip the Terraform executable:
20+
1521
```
1622
unzip terraform_*
1723
```
1824

1925
### Verify version
2026

27+
Verify that you are running Terraform 0.12 or greater.
28+
2129
```
22-
./terraform version
30+
terraform version
2331
```
2432

33+
You should see `v0.12.2` or greater in the output.
34+
2535
```
2636
Terraform v0.12.2
2737
```
2838

39+
If you are using a locally downloaded version if Terraform in the current directory, use `./terraform` (leading dot slash) to run the command.
40+
2941
NOTE: On any error, verify that you're using Terraform `0.12` or greater with `./terraform version`
3042

3143
### Optional: Skip to final code in `after` branch
@@ -79,19 +91,19 @@ resource "google_compute_network" "vpc_network" {
7991
### Init
8092

8193
```
82-
./terraform init
94+
terraform init
8395
```
8496

8597
### Plan
8698

8799
```
88-
./terraform plan
100+
terraform plan
89101
```
90102

91103
### Apply
92104

93105
```
94-
./terraform apply
106+
terraform apply
95107
```
96108

97109
You should see:
@@ -129,7 +141,7 @@ resource "google_compute_firewall" "default" {
129141
```
130142

131143
```
132-
./terraform apply
144+
terraform apply
133145
```
134146

135147
### Define a compute instance
@@ -162,7 +174,7 @@ resource "google_compute_instance" "vm_instance" {
162174
### Show state
163175

164176
```
165-
./terraform show
177+
terraform show
166178
```
167179

168180
Scroll up to `network_interface` and `access_config` and `nat_ip`. You'll find an IP address something like `0.0.0.0`.
@@ -205,7 +217,7 @@ git checkout -t origin/after
205217
## Destroy
206218

207219
```
208-
./terraform destroy
220+
terraform destroy
209221
```
210222

211223
```

0 commit comments

Comments
 (0)