-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat: add delete timeout to aws_autoscaling_group #1566
Conversation
Thank you for your contribution! The Remove any changes to the |
506da5a
to
2253ba0
Compare
we should address this issue in same way as in node groups: terraform-aws-eks/modules/node_groups/main.tf Lines 81 to 85 in 253f927
to make a consistent user experience. @filintod do you will be able to make this change? |
@daroga0002 I can do it but next week if that works. |
@filintod do you plan to implement changes? |
This PR has been automatically marked as stale because it has been open 30 days |
f6a970d
to
e362bf8
Compare
e362bf8
to
dfbb882
Compare
@daroga0002 sorry for the delay. updated the timeout to follow node groups format |
could you paste here some example of module configuration (this will make a testing faster)? |
@daroga0002 an example would be like:
|
workers.tf
Outdated
@@ -103,7 +103,9 @@ resource "aws_autoscaling_group" "workers" { | |||
"capacity_rebalance", | |||
local.workers_group_defaults["capacity_rebalance"] | |||
) | |||
|
|||
timeouts { | |||
delete = lookup(local.workers_group_defaults["timeouts"], "delete", null) |
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.
this should be customized via workers_group_defaults["timeouts"]
but also via timeouts
setting per particulal worker definition as rest of parameters which are defined here https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/locals.tf
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.
added an extra lookup against the per particular worker definition
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.
This will work, but in general this is in other way as other variables. Please review and use same pattern which we arleady using
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.
@daroga0002 could you explain/point out to me as I did not find it.
In node_groups, timeouts is used like:
timeouts {
create = lookup(each.value["timeouts"], "create", null)
update = lookup(each.value["timeouts"], "update", null)
delete = lookup(each.value["timeouts"], "delete", null)
}
where each is from https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/modules/node_groups/main.tf#L2 where they have timeouts as timeouts = var.workers_group_defaults["timeouts"]
I guess I could add timeouts
in locals.tf. But not sure if that is overkill as that was not added before, and from what I can see it would just change local.workers_group_defaults["timeouts"]
for local.timeouts
. Let me know or please point me to an example as I did not see anything similar from my point of view.
This PR has been automatically marked as stale because it has been open 30 days |
This issue has been resolved in version 18.0.0 🎉 |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
Adding timeout to asg deletion as sometimes it can take more than the default 10m in our case.
FEATURES:
workers_group_defaults.asg_delete_timeout
as a golang duration or in each template or configvia
delete_timeout
.Checklist