-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the ASG delete timeout configurable #949
Conversation
@jringuette here's the other part of that ASG PR you opened 😄 |
@@ -834,7 +838,7 @@ func resourceAwsAutoscalingGroupDrain(d *schema.ResourceData, meta interface{}) | |||
|
|||
// Next, wait for the autoscale group to drain | |||
log.Printf("[DEBUG] Waiting for group to have zero instances") | |||
return resource.Retry(10*time.Minute, func() *resource.RetryError { | |||
return resource.Retry(d.Timeout(schema.TimeoutDelete), func() *resource.RetryError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to decrease the default timeout from 10 to 5 mins here?
We could either introduce custom draining timeout or set the default to 10mins, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no, that's a strange typo or copy/paste error, I'll bump that back up to 10, thanks!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Originally hashicorp/terraform#14396
Note that this won't actually respect the delete timeout until hashicorp/terraform#15374 is merged and we bump our internal dependency on
helper/schema
TODO:
Tests passed: