Command-line options for tasks

Task Option Type Default Purpose

tofuApply

--targets

list

 

Select group of resources to apply.

--replace

boolean

false

Select group of resources to replace.

tofuCleanupWorkspaces

--force

boolean

false

Force removal of dangling workspaces even if state still exists.

tofuDestroy

--targets

list

 

Select group of resources to apply.

--approve

boolean

false

Auto-approve destruction of all mentioned resources.

tofuDestroyPlan

--targets

list

 

Select group of resources to apply.

--json

boolean

false

Write textual plan in JSON format.

tofuImport

--path

string

 

Resource to import e.g. aws_ecs_cluster.my_cluster

--id

string

 

Actual identifier to import. Check the Terraform documentation for the specific resource in order to know how to identify this.

tofuInit

--upgrade

boolean

 

Force upgrade of modules

--no-configure-backends

boolean

 

Do not configure backends

--force-copy

boolean

 

Automatically answer yes to any backend migration questions

--reconfigure

boolean

 

Disregard any existing configuration and prevent migration of any existing state

tofuOutput

--json

boolean

false

Write validation output in JSON format.

tofuPlan

--targets

list

 

Select group of resources to apply.

--json

boolean

false

Write textual plan in JSON format.

--replace

boolean

false

Select group of resources to replace.

tofuShowState

--json

boolean

false

Write validation output in JSON format.

tofuStateMv

--from-path

string

 

Source item to move i.e. packet_device.worker or module.app.

--to-path

string

 

Destination item i.e. packet_device.helper or module.parent.module.app.

tofuStatePush

--state-file

string

 

Local state file path (relative to Terraform source directory) to push to remote state.

tofuStateRm

--path

string

 

Resource to remove e.g. aws_ecs_cluster.my_cluster

tofuTaint

--path

string

 

Resource to taint.

--allow-missing

boolean

false

Allow task to succeed even if the resource is missing.

--ignore-remote-version

boolean

false

Continue if remote and local Terraform versions differ from Terraform Cloud.

tofuUntaint

--path

string

 

Resource to untaint.

--allow-missing

boolean

false

Allow task to succeed even if the resource is missing.

--ignore-remote-version

boolean

false

Continue if remote and local Terraform versions differ from Terraform Cloud.

tofuValidate

--json

boolean

false

Write validation output in JSON format.

Just in case this documentation is out-of-date, always run ./gradlew help --task <taskName> to get a description of supported command-line options.