provider/aws: Add an explicit depends on for the internet gateway, should help this test pass

This commit is contained in:
clint shryock 2017-06-08 16:44:22 -05:00
parent cd2a0b476b
commit d587b68863
1 changed files with 4 additions and 0 deletions

View File

@ -844,6 +844,8 @@ func testAccAWSRedshiftClusterConfig_notPubliclyAccessible(rInt int) string {
cluster_subnet_group_name = "${aws_redshift_subnet_group.foo.name}"
publicly_accessible = false
skip_final_snapshot = true
depends_on = ["aws_internet_gateway.foo"]
}`, rInt, rInt)
}
@ -902,6 +904,8 @@ func testAccAWSRedshiftClusterConfig_updatePubliclyAccessible(rInt int) string {
cluster_subnet_group_name = "${aws_redshift_subnet_group.foo.name}"
publicly_accessible = true
skip_final_snapshot = true
depends_on = ["aws_internet_gateway.foo"]
}`, rInt, rInt)
}