Equivalent of terraform plan
.
Modifiers | Name | Description |
---|---|---|
protected boolean |
jsonReport |
Fields inherited from class | Fields |
---|---|
class AbstractTerraformTask |
JSON_FORMAT, NO_COLOR |
Constructor and description |
---|
TerraformPlan
(java.lang.String workspaceName) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected TerraformExecSpec |
addCommandSpecificsToExecSpec(TerraformExecSpec execSpec) Add specific command-line options for the command. |
|
void |
exec() |
|
Provider<java.io.File> |
getInternalTrackerFile() This is the location of an internal tracker file used to keep state between apply & destroy cycles. |
|
Provider<java.io.File> |
getPlanOutputFile() Where the plan file will be written to. |
|
Provider<java.io.File> |
getPlanReportOutputFile() Where the textual representation of the plan will be written to. |
|
void |
setJson(boolean state) Where to write the report in human-readable or JSON format. |
|
void |
setReplacements(java.util.List<java.lang.String> resourceNames) Mark resources to be replaces. |
|
void |
setTargets(java.util.List<java.lang.String> resourceNames) Select specific resources. |
Add specific command-line options for the command.
If --refresh-dependencies
was specified on the command-line the -upgrade
will be passed
to terraform init
.
This is the location of an internal tracker file used to keep state between apply & destroy cycles.
Where the plan file will be written to.
Where the textual representation of the plan will be written to.
Where to write the report in human-readable or JSON format.
state
- Set to true
to output in JSON.Mark resources to be replaces.
resourceNames
- List of resources to target.Select specific resources.
resourceNames
- List of resources to target.