You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-> **Note:** The `script` argument can take anny string, including a [heredoc](https://www.terraform.io/docs/language/expressions/strings.html#heredoc-strings) or the contents of a file returned by the [`file`](https://www.terraform.io/docs/language/functions/file.html) function.
39
+
-> **Note:** The `script` argument can take any string, including a [heredoc](https://www.terraform.io/docs/language/expressions/strings.html#heredoc-strings) or the contents of a file returned by the [`file`](https://www.terraform.io/docs/language/functions/file.html) function.
41
40
42
41
The project layout should look similar to this:
43
42
44
43
```
45
44
project/
46
-
├─ shared/
47
-
│ └─ ···
48
-
└─ main.tf
45
+
├── main.tf
46
+
└── shared/
47
+
└── ...
49
48
```
50
49
51
50
## Initializing Terraform
@@ -91,14 +90,14 @@ This command will:
91
90
## Deleting Tasks
92
91
93
92
```console
94
-
terraform destroy
93
+
$ terraform destroy
95
94
```
96
95
97
96
This command will:
98
97
99
98
1. Download the specified shared `directory` from the cloud.
100
-
2. Delete all the created cloud resources.
99
+
2. Delete all the cloud resources created by `terraform apply`.
101
100
102
101
## Viewing Task Results
103
102
104
-
After running `terraform destroy`, the `shared/` directory should contain a file named `greeting.txt` with the text `Hello, World!`
103
+
After running `terraform destroy`, the `shared` directory should contain a file named `greeting.txt` with the text `Hello, World!`
-> **Note:** See the [Getting Started](https://registry.terraform.io/providers/iterative/iterative/latest/docs/guides/getting-started) for more information.
29
+
-> **Note:** See [Getting Started](https://registry.terraform.io/providers/iterative/iterative/latest/docs/guides/getting-started) for more information.
31
30
32
31
## Authentication
33
32
34
-
[Environment variables](https://registry.terraform.io/providers/iterative/iterative/latest/docs#authentication) are the only supported authentication method. They should
35
-
be present when running any of the `terraform` commands.
33
+
Environment variables are the only supported authentication method. They should be present when running any of the `terraform` commands.
36
34
37
35
### Example
38
36
@@ -51,8 +49,7 @@ $ terraform apply
51
49
52
50
-`GOOGLE_APPLICATION_CREDENTIALS` - Path to a service account JSON key file.
53
51
54
-
-> **Note:** you can also use `GOOGLE_APPLICATION_CREDENTIALS_DATA` with the
55
-
**contents** of the service account JSON key file.
52
+
-> **Note:** you can also use `GOOGLE_APPLICATION_CREDENTIALS_DATA` with the **contents** of the service account JSON key file.
In addition to generic types, it's possible to specify any machine type
87
-
supported by the underlying cloud provider.
78
+
In addition to generic types, it's possible to specify any machine type supported by the underlying cloud provider.
88
79
89
80
#### Amazon Web Services
90
81
@@ -112,15 +103,13 @@ supported by the underlying cloud provider.
112
103
113
104
### Generic
114
105
115
-
The Iterative Provider offers some common machine images which are roughly the same
116
-
for all supported clouds.
106
+
The Iterative Provider offers some common machine images which are roughly the same for all supported clouds.
117
107
118
-
-`ubuntu` - Official Ubuntu LTS image, currently 20.04.
108
+
-`ubuntu` - Official [Ubuntu LTS](https://wiki.ubuntu.com/LTS) image (currently 20.04).
119
109
120
110
### Cloud-specific
121
111
122
-
In addition to generic images, it's possible to specify any machine image
123
-
supported by the underlying cloud provider.
112
+
In addition to generic images, it's possible to specify any machine image supported by the underlying cloud provider.
124
113
125
114
#### Amazon Web Services
126
115
@@ -169,8 +158,7 @@ See https://docs.microsoft.com/en-us/azure/virtual-machines/linux/cli-ps-findima
169
158
170
159
### Generic
171
160
172
-
The Iterative Provider offers some common cloud regions which are roughly the same
173
-
for all supported clouds.
161
+
The Iterative Provider offers some common cloud regions which are roughly the same for all supported clouds.
174
162
175
163
-`us-east` - United States of America, East.
176
164
-`us-west` - United States of America, West.
@@ -179,8 +167,7 @@ for all supported clouds.
179
167
180
168
### Cloud-specific
181
169
182
-
In addition to generic regions, it's possible to specify any cloud region
183
-
supported by the underlying cloud provider.
170
+
In addition to generic regions, it's possible to specify any cloud region supported by the underlying cloud provider.
184
171
185
172
#### Amazon Web Services
186
173
@@ -210,6 +197,6 @@ Setting the `region` attribute results in undefined behaviour.
210
197
211
198
Unlike public cloud providers, Kubernetes does not offer any portable way of persisting and sharing storage between pods. When specified, the `directory` attribute will create a `PersistentVolumeClaim` of the default `StorageClass`, with the same lifecycle as the task and the specified `disk_size`.
212
199
213
-
~> **Warning:** Access mode will be `ReadWriteOnce`for`parallelism` equal to 1 or `ReadWriteMany` otherwise.
200
+
~> **Warning:** Access mode will be `ReadWriteOnce`if`parallelism=1` or `ReadWriteMany` otherwise.
214
201
215
202
-> **Note:** Rancher's [Local Path Provisioner](https://github.com/rancher/local-path-provisioner) might be the easiest way of deploying a quick `ReadWriteOnce` dynamically allocated storage solution for testing: just run `kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml`.
0 commit comments