Create an executable object
You can create an executable object to define a reusable execution command for services. Executable objects allow you to specify the full path to an executable file and configure security settings like allowed arguments and path validation.
Prerequisites
- The executable file must exist on your system at the specified path
- You must know the full path to the executable file
Create an executable object with basic settings
Use the iagctl create executable-object command to create a new executable object.
Syntax:
Parameters:
<name>: A unique name for the executable object--exec-command: The full path to the executable file on your system
Example:
Create an executable object for Python 3.11:
Create an executable object with a description
Add a description to help operators understand the purpose of the executable object.
Syntax:
Example:
Additional examples
Create an executable object for Terraform:
Create an executable object for a custom script interpreter:
Create an executable object for Python with conda:
Next steps
After you create an executable object, you can: