|
|
|
|
@ -48,6 +48,8 @@ func TestAccAWSAutoScalingGroup_basic(t *testing.T) {
|
|
|
|
|
"aws_autoscaling_group.bar", "termination_policies.0", "OldestInstance"),
|
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
|
"aws_autoscaling_group.bar", "termination_policies.1", "ClosestToNextInstanceHour"),
|
|
|
|
|
resource.TestCheckResourceAttr(
|
|
|
|
|
"aws_autoscaling_group.bar", "placement_group", "test"),
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -364,6 +366,7 @@ resource "aws_autoscaling_group" "bar" {
|
|
|
|
|
desired_capacity = 4
|
|
|
|
|
force_delete = true
|
|
|
|
|
termination_policies = ["OldestInstance","ClosestToNextInstanceHour"]
|
|
|
|
|
placement_group = "test"
|
|
|
|
|
|
|
|
|
|
launch_configuration = "${aws_launch_configuration.foobar.name}"
|
|
|
|
|
|
|
|
|
|
|