Skip to content

Commit

Permalink
Merge pull request #97 from spacelift-io/fix-rebalancing
Browse files Browse the repository at this point in the history
Fix rebalancing
  • Loading branch information
truszkowski authored Aug 28, 2024
2 parents fa109b2 + 603cd90 commit 86453d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .spacelift/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: 1
module_version: 2.6.0
module_version: 2.6.1
tests:
- name: AMD64-based workerpool
project_root: examples/amd64
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ terraform {
}
module "my_workerpool" {
source = "github.com/spacelift-io/terraform-aws-spacelift-workerpool-on-ec2?ref=v2.6.0"
source = "github.com/spacelift-io/terraform-aws-spacelift-workerpool-on-ec2?ref=v2.6.1"
configuration = <<-EOT
export SPACELIFT_TOKEN="${var.worker_pool_config}"
Expand Down
6 changes: 6 additions & 0 deletions asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ module "asg" {
http_put_response_hop_limit = var.disable_container_credentials ? 1 : 2
}

suspended_processes = var.enable_autoscaling ? [
# Prevents the ASG from terminating instances for rebalancing between AZs,
# which triggered right after termination of instances by lambda
"AZRebalance"
] : []

# User data
user_data = base64encode(
join("\n", [
Expand Down

0 comments on commit 86453d2

Please sign in to comment.