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
Copy file name to clipboardExpand all lines: docs/guides/getting-started.md
+2
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,8 @@ With spot/preemptible instances (`spot >= 0`), auto-recovery logic and persisten
87
87
88
88
-> **Note:** A large `workdir` may take a long time to upload.
89
89
90
+
-> **Note:** The [`id`](https://registry.terraform.io/providers/iterative/iterative/latest/docs/resources/task#id) returned by `terraform apply` (i.e. `[id=tpi-···]`) can be used to locate the created cloud resources through the cloud's web console or command–line tool.
-`storage.output` - (Optional) Results directory (**relative to `workdir`**) to download (default: no download).
55
53
-`environment` - (Optional) Map of environment variable names and values for the task script. Empty string values are replaced with local environment values. Empty values may also be combined with a [glob](<https://en.wikipedia.org/wiki/Glob_(programming)>) name to import all matching variables.
56
54
-`timeout` - (Optional) Maximum number of seconds to run before termination.
55
+
-`name` - (Optional) Discouraged and may be removed in future. Deterministic task name (e.g. `name="Hello, World!"` always produces `id="tpi-hello-world-5kz6ldls-57wo7rsp"`).
57
56
58
57
-> **Note:**`output` is relative to `workdir`, so `storage { workdir = "foo", output = "bar" }` means "upload `./foo/`, change working directory to the uploaded folder, run `script`, and download `bar` (i.e. `./foo/bar`)".
59
58
60
59
## Attribute Reference
61
60
62
61
In addition to all arguments above, the following attributes are exported:
63
62
63
+
-`id` - Task identifier, `tpi-{name}-{random_hash_1}-{random_hash_2}`. Either the full `{id}` or (if too long), the shorter `{random_hash_1}{random_hash_2}` is used as the name for all cloud resources.
64
64
-`ssh_public_key` - Used to access the created machines.
65
65
-`ssh_private_key` - Used to access the created machines.
66
66
-`addresses` - IP addresses of the currently active machines.
67
67
-`status` - Status of the machine orchestrator.
68
68
-`events` - List of events for the machine orchestrator.
69
69
-`logs` - List with task logs; one for each machine.
70
70
71
-
~> **Warning:**Status and events don't produce a stable output between cloud providers and are intended for human consumption only.
71
+
~> **Warning:**`events` have different formats across cloud providers and cannot be relied on for programmatic consumption/automation.
0 commit comments