Skip to content

Terraform Test: Add ability to restrict parallelism when creating resources #34237

@richid

Description

@richid

Terraform Version

Terraform v1.6.3
on darwin_arm64

Use 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions