forked from GoogleCloudPlatform/compute-image-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.wf.json
42 lines (42 loc) · 901 Bytes
/
vars.wf.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"Name": "vars",
"Project": "YOURPROJECT",
"Zone": "us-west1-a",
"GCSPath": "gs://YOUR/GCS/PATH",
"OAuthPath": "YOUR/CREDS.json",
"Sources": {
"startup": "../vm_creation/simple_vm_startup.sh"
},
"Vars": {
"vm-name": "myvar"
},
"Steps": {
"setup": {
"CreateDisks": [
{
"Name": "foo-disk",
"SourceImage": "projects/debian-cloud/global/images/family/debian-9",
"SizeGb": "10",
"Type": "pd-ssd"
}
]
},
"run": {
"CreateInstances": [
{
"Name": "${vm-name}",
"Disks": [{"Source": "foo-disk"}],
"MachineType": "n1-standard-1",
"StartupScript": "startup"
}
]
},
"wait": {
"WaitForInstancesSignal": [{"Name": "${vm-name}", "Stopped": true}]
}
},
"Dependencies": {
"run": ["setup"],
"wait": ["run"]
}
}