Problem:
Terraform Cloud workspaces are not respecting the value set for the TFE_PARALLELISM
environment variable.
Cause:
Prior to migrating from the worker to the agent, Terraform Cloud used this environment variable to control the value passed to the-parallelism
argument. Every run had this argument specified at the end of the arguments passed toterraform plan
andterraform apply
. The use ofTF_CLI_ARGS_plan
andTF_CLI_ARGS_apply
containing-parallelism
would not take effect since-parallelism
was always passed after whereTF_CLI_ARGS_*
values would be placed. TFE_PARALLELISM
should set-parallelism
as the definitive value for this argument.
At present TFE_PARALLELISM
is not having any effect on runs in TFC. Setting parallelism ,1
or any value other than10
, are silently not getting that value.
Solution:
Create TF_CLI_ARGS_plan
and TF_CLI_ARGS_apply
environment variables and set their values to-parallelism=N
, where N
is the desired value that was previously used forTFE_PARALLELISM
.
Additional Information: