iagctl create executable-object
iagctl create executable-object
Create a new executable object resource.
Use this command to create an executable object resource in the gateway’s data store. An executable object references an executable file on the machine where the gateway runs services.
For more information, see Executable objects.
You can pair an executable object with a service to control how the service runs. The executable object overrides the following behavior for each service type:
- Python — Path to the Python interpreter on disk
- Ansible — Path to the Python interpreter that Ansible runs under on disk
- OpenTofu — Path to the OpenTofu executable on disk
- Executable — Path to any executable file, for example
/bin/bash
Syntax
Usage pattern
The following example shows how to use an executable object with a Python service.
Create an executable object
To use a specific Python interpreter when executing a Python service, create an executable object that points to it. For example, if you want to use /usr/bin/python3.12 instead of the interpreter in your $PATH at /usr/bin/python3.9, run the following:
Examples
Create an executable object linking to bash
Creates an executable object for use with the executable service. See iagctl create service executable --help for more information.
Create an executable object linking to a Python interpreter
Creates an executable object that links to a specific Python interpreter for use with Python and Ansible services.