opensearch: Remove 10-minute delays from domain creation and deletion #45245
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #45244
Removes hardcoded delays before polling domain state during creation, update, and deletion operations. The provider will now begin polling immediately with a 10-second interval for all operations.
This significantly reduces wait times for:
Changes:
tfresource.WithDelay(10*time.Minute)fromwaitForDomainCreation()tfresource.WithDelay(1*time.Minute)fromwaitForDomainUpdate()(for consistency)tfresource.WithDelay(10*time.Minute)fromwaitForDomainDelete()tfresource.WithPollInterval(10*time.Second)to prevent API rate limiting.changelog/45245.txtDomain Creation Performance Test (LocalStack):
Note on Consistency:
PR #32209 reduced the update delay from 10 minutes to 1 minute. This PR goes further by removing delays entirely from all operations (create/update/delete) for consistency and maximum performance improvement.
Related: