iagctl run service opentofu-plan
iagctl run service opentofu-plan
Run an OpenTofu plan service.
The iagctl run service opentofu-plan command executes an OpenTofu plan service and displays the resulting state file, stdout, stderr, return code, and execution time information. This command supports two subcommands:
apply— Runstofu initandtofu apply.destroy— Runstofu initandtofu destroy.
Syntax
Usage notes
Runtime variables
Use the --set flag to pass OpenTofu variables at runtime using key=value syntax. If you defined a decorator during service creation, IAG validates all --set values against it.
View accepted inputs
Use the --use flag with the service name to display information about the inputs a service accepts:
State files
Use the --state flag to specify a state file for OpenTofu to reference during execution. The --state flag accepts inline JSON or a path to an existing state file using the @ prefix.
When you specify a file path with @, IAG writes the resulting state file to that same path unless you use the --state-out flag to specify a different output path.