hashicorp / hashicorp/terraform-plugin-sdk
Parallelism control per-resource when count > 1
- Dominant language
- Go
- Stars
- 485
- Forks
- 244
- Avg merge
- 19h 57m
- Merged PRs (30d)
- 4
Description
Feature/Enhancement request
I'd like to see support for modifying the parallelism on a per-resource basis.
Use cases:
1. Create a quantity of the same resource, but actions must be executed one at a time. An example of this would be chef-backend, and joining the cluster. A leader (the first) must be established, but then subsequent backend members (initially followers) must join one at a time due to the backend configuration steps going on in the background. This would avoid the need to craft a waiting mechanism for N objects (here's where `count` comes into play)
1. For load considerations, sometimes more or less than the current parallelisim can be handled. It would be nice to have control per resource on this.
2. In the case of a cluster initiator and cluster members joining (sequential) we have the possibility to control initialization versus joining, and do so in sequence in one resource versus two or more with complicated logic.
3. Sequential phases are more tightly controlled, and doesn't affect `depends_on` but reduces overall line count and appearances of resource duplication
Contributor guide
Assessment
This issue has not been assessed yet.