get_terraform_commands_that_need_parallelism
unitstack
Usage
get_terraform_commands_that_need_parallelism() --> list(string)get_terraform_commands_that_need_parallelism returns apply, plan, and destroy. Use it as the commands of an extra_arguments block that passes -parallelism:
terraform { extra_arguments "parallelism" { commands = get_terraform_commands_that_need_parallelism() arguments = ["-parallelism=5"] }}Examples
locals { commands = get_terraform_commands_that_need_parallelism() # ["apply", "plan", "destroy"]}