Complete API reference for the Kubiya Stacks service methods and classes
Attribute | Type | Optional | Description |
---|---|---|---|
main_tf | str | Yes | Main Terraform configuration content |
variables_tf | str | Yes | Terraform variables configuration content |
main_tf_path | Union[str, Path] | Yes | Path to main.tf file |
variables_tf_path | Union[str, Path] | Yes | Path to variables.tf file |
main_tf
content or main_tf_path
must be providedvariables_tf
content or variables_tf_path
must be providedAttribute | Type | Optional | Description |
---|---|---|---|
name | str | No | Name of the Terraform stack |
files | StackFiles | No | Terraform configuration files |
plan(stack_request: StackRequest) -> Dict[str, Any]
stack_request
(StackRequest
): Stack configuration with name and filesDict[str, Any]
: Dictionary containing plan response dataStackPlanError
: For planning-specific errors with detailed contextapply(stack_request: StackRequest) -> Dict[str, Any]
stack_request
(StackRequest
): Stack configuration with name and filesDict[str, Any]
: Dictionary containing apply response data with task_id for streamingStackApplyError
: For apply-specific errors with detailed contextstream(stack_id: Optional[str] = None) -> Generator[str, None, None]
stack_id
(Optional[str]
): Stack ID. If not provided, uses the stack ID from the last apply operationGenerator[str, None, None]
: Generator yielding log data as stringsStackStreamError
: For streaming-specific errorsstack_name
(Optional[str]
): Name of the stack that caused the errordetails
(Dict[str, Any]
): Additional error context and metadatastack_name
(Optional[str]
): Name of the stack that failed planningvalidation_errors
(Optional[Dict[str, Any]]
): Terraform validation error detailsdetails
(Dict[str, Any]
): Complete error contextstack_name
(Optional[str]
): Name of the stack that failed applystack_id
(Optional[str]
): UUID of the failed apply operationterraform_errors
(Optional[Dict[str, Any]]
): Terraform apply error detailsdetails
(Dict[str, Any]
): Complete error contextstack_id
(Optional[str]
): UUID of the stack with streaming issuesstream_position
(Optional[int]
): Position in stream where error occurreddetails
(Dict[str, Any]
): Complete error context