-
Notifications
You must be signed in to change notification settings - Fork 241
Description
SDK version
N/A
Use-cases
When using a provider with an alternative underlying API, it would be useful to to control certain variables of the StateChangeConf
. For example, when mocking an API for testing purposes or deploying resources against a local emulator like LocalStack, the arbitrary values set set by the provider for delay
, MinTimeout
and PollTimeout
becomes irrelevant. Allowing users to override these values would could greatly reduce the time to deploy and developers iteration cycle.
Attempted Solutions
As a POC, a fork of this package was created that ignores the provider’s StateChangeConf
and resets the values to 0. It significantly improved deployment times against LocalStack. However, maintaining a fork of both the SDK and the providers, and using dev provider overrides or similar mechanisms to swap the provider at runtime, is not a sustainable solution.
An issue has also been opened with the terraform-provider-aws to make this configurable on their side. There is so far no traction from their part and it would require changes to every resources configuring WaitForState
with its own values. Most likely through a more global retry management mechanism.
Proposal
It would be extremely helpful to have a way to control this behavior. Either through an environment variable for global control or through provider configuration which could provide extra flexibility for hybrid setup.
I would also be happy to help contribute on a solution, given some guidance from the maintainers of this repo regarding an acceptable solution.