Closed scottwinkler closed 4 years ago
Adding a new argument to the provider config to enable parallelism (default is false). This will make it harder to debug things, but also much faster.
provider "shell" { enable_parallelism = true } data "shell_script" "weather" { count = 100 lifecycle_commands { read = <<-EOF echo "{\"SanFrancisco\": \"$(curl wttr.in/SanFrancisco?format="%l:+%c+%t")\"}" EOF } }
For the above example, it is 5.2s vs 42.7s without parallelism turned on.
Adding a new argument to the provider config to enable parallelism (default is false). This will make it harder to debug things, but also much faster.
For the above example, it is 5.2s vs 42.7s without parallelism turned on.