Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. This Universal Task requires the Resolvable Credentials feature. Check that the Resolvable Credentials Permitted system property has been set to true. For more information about Resolvable Credentials click here.

  2. To import the Universal Template into your Controller, follow the instructions here.

  3. When the files have been imported successfully, refresh the Universal Templates list; the Universal Template will appear on the list.

...

For the new Universal Task type, create a new task , and enter the task-specific details that were created in the Universal Template

...

FiledInput typeDefault valueTypeDescription
ActionRequiredInitChoice

Terraform command.

Valid values are:

  • Init
  • Plan
  • Apply
  • Destroy
Upgrade PluginsOptionalFalseBoolean

If selected, this flag upgrades all previously-selected plugins to the newest version that complies with the configuration's version constraints.

This will cause Terraform to ignore any selections recorded in the dependency lock file, and to take the newest available version matching the configured version constraints.

Variables ScriptOptionalEmptyScriptUAC script that contains Terraform input variables including all required credential mappings
Plan Output FileOptionalEmptyTextThe file File that contains the resulting plan of the Terraform "Plan" command. If file already exists it will be overwritten.
Plan FileOptionalEmptyTextThe plan Plan file that is applied.
Planning modeOptionalNoneChoiceThe Terraform Planning Mode that is applied.
Print Log on STDERROptionalTrueBooleanIf selected, Terraform log will be printed on STDERR.
JSON OutputOptionalFalseBooleanIf selected, Terraform log will be printed in JSON format.
Runtime DirectoryOptionalEmptyTextThis is the path Path where all the terraform Terraform files, plugins, and execution will be performed. It should be also the path to .tf file.

...

Plan action with provided Plan Output File, Variables Script, Printing logs in json format and PATH variable to terraform binary.

Variable Script:

Terraform Apply

Apply action with provided Plan File, Variables Script, Printing logs in json format and PATH variable to terraform binary.

Terraform Destroy

Destroy action with Printing logs in json format and PATH variable to terraform binary

...

Attribute result.commands provides information for the Terraform executed command.

It contains the following sub-attributes.

AttributeOutput TypeTypeDescription
cmdMandatoryTextThe executed command
rcMandatoryIntegerReturn code of executed command.

The Extension Output for UE Terraform is described below.

Attribute changed is populated as follows:

null

...

If Action is Init/Apply/Destroy.
false

...

If Action is Plan, and it has succeeded with empty diff (no changes).
true

...

If Action is Plan, and it has succeeded with non-empty diff (changes present).

If subsequent tasks in a workflow reply on the output of this Universal Extension then , they should rely on Extension Output.

...