forked from GoogleCloudPlatform/compute-image-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_vm.wf.json
39 lines (39 loc) · 854 Bytes
/
simple_vm.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
{
"Name": "simplevm",
"Project": "YOURPROJECT",
"Zone": "us-west1-a",
"GCSPath": "gs://YOUR/GCS/PATH",
"OAuthPath": "YOUR/CREDS.json",
"Sources": {
"startup": "simple_vm_startup.sh"
},
"Steps": {
"setup": {
"CreateDisks": [
{
"Name": "foo-disk",
"SourceImage": "projects/debian-cloud/global/images/family/debian-9",
"SizeGb": "10",
"Type": "pd-ssd"
}
]
},
"run": {
"CreateInstances": [
{
"Name": "foo-instance",
"Disks": [{"Source": "foo-disk"}],
"MachineType": "n1-standard-1",
"StartupScript": "startup"
}
]
},
"wait": {
"WaitForInstancesSignal": [{"Name": "foo-instance", "Stopped": true}]
}
},
"Dependencies": {
"run": ["setup"],
"wait": ["run"]
}
}