Skip to content

Commit

Permalink
feat: Add auto_rollback feature to this module in instance_refresh se…
Browse files Browse the repository at this point in the history
…ttings (#232)

Co-authored-by: Satish Tripathi <[email protected]>
Co-authored-by: Bryant Biggs <[email protected]>
  • Loading branch information
3 people authored May 17, 2023
1 parent 33dd9d5 commit f6adff7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.1
rev: v1.79.1
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down
1 change: 1 addition & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ module "complete" {
checkpoint_percentages = [35, 70, 100]
instance_warmup = 300
min_healthy_percentage = 50
auto_rollback = true
}
triggers = ["tag"]
}
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ resource "aws_autoscaling_group" "this" {
checkpoint_percentages = try(preferences.value.checkpoint_percentages, null)
instance_warmup = try(preferences.value.instance_warmup, null)
min_healthy_percentage = try(preferences.value.min_healthy_percentage, null)
auto_rollback = try(preferences.value.auto_rollback, null)
}
}
}
Expand Down Expand Up @@ -678,6 +679,7 @@ resource "aws_autoscaling_group" "idc" {
checkpoint_percentages = try(preferences.value.checkpoint_percentages, null)
instance_warmup = try(preferences.value.instance_warmup, null)
min_healthy_percentage = try(preferences.value.min_healthy_percentage, null)
auto_rollback = try(preferences.value.auto_rollback, null)
}
}
}
Expand Down

0 comments on commit f6adff7

Please sign in to comment.