fix test to include creation of placement group

This commit is contained in:
Sunil K Chopra 2015-11-13 12:40:19 -06:00
parent 16b0e0d619
commit bf88ee8ddb
1 changed files with 6 additions and 1 deletions

View File

@ -356,6 +356,11 @@ resource "aws_launch_configuration" "foobar" {
instance_type = "t1.micro" instance_type = "t1.micro"
} }
resource "aws_placement_group" "test" {
name = "test"
strategy = "cluster"
}
resource "aws_autoscaling_group" "bar" { resource "aws_autoscaling_group" "bar" {
availability_zones = ["us-west-2a"] availability_zones = ["us-west-2a"]
name = "foobar3-terraform-test" name = "foobar3-terraform-test"
@ -366,7 +371,7 @@ resource "aws_autoscaling_group" "bar" {
desired_capacity = 4 desired_capacity = 4
force_delete = true force_delete = true
termination_policies = ["OldestInstance","ClosestToNextInstanceHour"] termination_policies = ["OldestInstance","ClosestToNextInstanceHour"]
placement_group = "test" placement_group = "${aws_placement_group.test.name}"
launch_configuration = "${aws_launch_configuration.foobar.name}" launch_configuration = "${aws_launch_configuration.foobar.name}"