UNPKG

@storm-software/terraform-tools

Version:

Tools for managing Terraform infrastructure within a Nx workspace.

110 lines (96 loc) 2.08 kB
import { ExecutorContext } from '@nx/devkit'; import { ProjectTokenizerOptions } from '@storm-software/config-tools'; import { BaseExecutorSchema } from '@storm-software/workspace-tools/base/base-executor.schema.d'; import { BaseExecutorOptions } from '@storm-software/workspace-tools/types'; // Generated by @storm-software/untyped // Do not edit this file directly interface BaseTerraformExecutorSchema { /** * Backend Config * * The backend configuration * */ backendConfig?: Array<any>, /** * Auto Approval * * Whether to auto-approve the plan * * @default false */ autoApproval?: boolean, /** * Plan File * * The plan file * * @default "plan.out" * * @format path */ planFile?: string, /** * Format Write * * Whether to format the files before writing * * @default false */ formatWrite?: boolean, /** * Upgrade * * Whether to upgrade the modules * * @default false */ upgrade?: boolean, /** * Migrate State * * Whether to migrate the state * * @default false */ migrateState?: boolean, /** * Lock * * Whether to lock the state * * @default false */ lock?: boolean, /** * Var File * * The variable file * * @default "variables.tf" * * @format path */ varFile?: string, /** * Var String * * The variable string * */ varString?: string, /** * Reconfigure * * Whether to reconfigure the state * * @default false */ reconfigure?: boolean, } type TerraformExecutorSchema = BaseExecutorSchema & Partial<BaseTerraformExecutorSchema>; type NormalizedTerraformExecutorOptions = ProjectTokenizerOptions & TerraformExecutorSchema; declare const withTerraformExecutor: <TExecutorSchema extends TerraformExecutorSchema = TerraformExecutorSchema>(command: string, executorOptions?: BaseExecutorOptions<TExecutorSchema>) => (_options: TExecutorSchema, context: ExecutorContext) => Promise<{ success: boolean; }>; export { type NormalizedTerraformExecutorOptions, type TerraformExecutorSchema, withTerraformExecutor };