hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.

Home Page:https://registry.terraform.io/providers/hashicorp/aws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: wait_for_termination_timeout for aws_autoscaling_group

hashibot opened this issue · comments

This issue was originally opened by @brikis98 as hashicorp/terraform#12298. It was migrated here as part of the provider split. The original body of the issue is below.


The aws_autoscaling_group resource allows you to specify a wait_for_capacity_timeout parameter to control how long Terraform will wait for ASG instances to transition to the "In Service" state before timing out.

Is it possible to expose an analogous wait_for_termination_timeout parameter that controls how long Terraform will wait for ASG instances to terminate when deleting an ASG?

The use case is that I've added an aws_autoscaling_lifecycle_hook for autoscaling:EC2_INSTANCE_TERMINATING, and sometimes it takes a while to do processing before I can mark the hook as complete and allow the instance to terminate. Unfortunately, it looks like there is a hard-coded 10 minute timeout somewhere in the Terraform code, as after 10 minutes, I get the error:

* aws_autoscaling_group.autoscaling_group (deposed #0): group still has 3 instances

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

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!