Skip to content

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:

terragrunt.hcl
terraform {
extra_arguments "parallelism" {
commands = get_terraform_commands_that_need_parallelism()
arguments = ["-parallelism=5"]
}
}

Examples

terragrunt.hcl
locals {
commands = get_terraform_commands_that_need_parallelism()
# ["apply", "plan", "destroy"]
}