Skip to content
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

Merged
merged 4 commits into from
Jun 23, 2017
Merged

Make the ASG delete timeout configurable #949

merged 4 commits into from
Jun 23, 2017

Conversation

catsby
Copy link
Member

@catsby catsby commented Jun 22, 2017

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:

screen shot 2017-06-23 at 10 55 37 am

@catsby
Copy link
Member Author

catsby commented Jun 22, 2017

@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 {
Copy link
Member

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.

Copy link
Member Author

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!

@ghost
Copy link

ghost commented Apr 12, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants