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

Commit 31d9a70

Browse files
committed
Make termination_policies a list
1 parent 894dabc commit 31d9a70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/couchbase-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "aws_autoscaling_group" "autoscaling_group" {
1919

2020
min_size = var.min_size
2121
max_size = var.max_size
22-
termination_policies = [var.termination_policies]
22+
termination_policies = var.termination_policies
2323

2424
health_check_type = var.health_check_type
2525
health_check_grace_period = var.health_check_grace_period

modules/couchbase-cluster/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ variable "allowed_ssh_security_group_ids" {
6868

6969
variable "termination_policies" {
7070
description = "A list of policies to decide how the instances in the auto scale group should be terminated. The allowed values are OldestInstance, NewestInstance, OldestLaunchConfiguration, ClosestToNextInstanceHour, Default."
71-
type = string
72-
default = "Default"
71+
type = list(string)
72+
default = ["Default"]
7373
}
7474

7575
variable "associate_public_ip_address" {

0 commit comments

Comments
 (0)