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-parallelismargument. Every run had this argument specified at the end of the arguments passed toterraform planandterraform apply. The use ofTF_CLI_ARGS_planandTF_CLI_ARGS_applycontaining-parallelismwould not take effect since-parallelismwas 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, 1or 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: