Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit fef71c9

Browse files
qrilkaketzacoatl
authored andcommitted
asg: add suspended_processes
1 parent e63643c commit fef71c9

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Modules
66

77
* `asg`: add `protect_from_scale_in` to allow instance termination protection
8+
* `asg`: add `suspended_processes`
89

910
### Examples
1011

modules/asg/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ resource "aws_autoscaling_group" "cluster" {
3636
placement_group = var.placement_group
3737
termination_policies = var.termination_policies
3838
protect_from_scale_in = var.protect_from_scale_in
39+
suspended_processes = var.suspended_processes
3940

4041
lifecycle {
4142
create_before_destroy = true

modules/asg/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,9 @@ variable "protect_from_scale_in" {
160160
description = "Allows setting instance protection. The autoscaling group will not select instances with this setting for terminination during scale in events."
161161
type = bool
162162
}
163+
164+
variable "suspended_processes" {
165+
default = []
166+
description = "A list of processes to suspend for the AutoScaling Group. The allowed values are Launch, Terminate, HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions, AddToLoadBalancer. Note that if you suspend either the Launch or Terminate process types, it can prevent your autoscaling group from functioning properly."
167+
type = list(string)
168+
}

0 commit comments

Comments
 (0)