-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Terraform Test: Add ability to restrict parallelism when creating resources #34237
Copy link
Copy link
Closed
Closed
Copy link
Labels
Description
Terraform Version
Terraform v1.6.3
on darwin_arm64Use Cases
I have been converting some modules from my home-grown E2E testing pattern to using the new terraform test framework. It's been great but one issue I'm running into is that there is no ability to set the -parallelism=<N> flag when using the apply command. This is generally not a problem but there are certain AWS resources that run into problems when this is not set to 1. Specifically, certain AWS ECS resources as outlined hashicorp/terraform-provider-aws#9777
Attempted Solutions
Tried to set the following envvar: TF_CLI_ARGS_apply="-parallelism=1". Confirmed that the -parallelism argument is not supported by the test command.
Proposal
Add a -parallelism=<N> flag to the test command that operates in the same way it does for the apply command.
References
No response
Reactions are currently unavailable