Process code with VM Launcher
Learn how to use a VM Launcher data operation to process some code on a VM.
The VM Launcher data operation allows you to start a Google Compute Engine VM where you can execute a script in the language of your choice, and then to stop the VM automatically to save resources.
All languages (Python, R, JavaScript, etc.)
Every time a script file appears in a given directory of a Google Cloud Storage bucket:
- A VM with the specified characteristics is started on GCE.
- The instructions set in the JSON configuration file
script_to_execute
parameter are executed, and the script is launched. - Once the execution is complete, the VM is stopped automatically.
- 1.
- 2.Create a working folder as you want.
- 3.Create a JSON file for your data operation in your working folder. Refer to this page to learn about all the parameters.
- 4.Access your working folder by running the following command:cd "[path to your working folder]"
- 5.To deploy the data operation, run the following command:tailer deploy configuration your-configuration.json
- 6.
- 7.For execute your VM Launcher data operation, place a script in the working folder.