provider/aws: Fix race condition in Beanstalk acc test (#15116)

This commit is contained in:
Radek Simko 2017-06-06 12:28:13 +01:00 committed by GitHub
parent 683a14853d
commit aac988da93
1 changed files with 4 additions and 4 deletions

View File

@ -945,7 +945,7 @@ resource "aws_elastic_beanstalk_application" "default" {
}
resource "aws_elastic_beanstalk_application_version" "default" {
application = "tf-test-name-%d"
application = "${aws_elastic_beanstalk_application.default.name}"
name = "tf-test-version-label"
bucket = "${aws_s3_bucket.default.id}"
key = "${aws_s3_bucket_object.default.id}"
@ -957,7 +957,7 @@ resource "aws_elastic_beanstalk_environment" "default" {
version_label = "${aws_elastic_beanstalk_application_version.default.name}"
solution_stack_name = "64bit Amazon Linux running Python"
}
`, randInt, randInt, randInt, randInt)
`, randInt, randInt, randInt)
}
func testAccBeanstalkEnvApplicationVersionConfigUpdate(randInt int) string {
@ -978,7 +978,7 @@ resource "aws_elastic_beanstalk_application" "default" {
}
resource "aws_elastic_beanstalk_application_version" "default" {
application = "tf-test-name-%d"
application = "${aws_elastic_beanstalk_application.default.name}"
name = "tf-test-version-label-v2"
bucket = "${aws_s3_bucket.default.id}"
key = "${aws_s3_bucket_object.default.id}"
@ -990,5 +990,5 @@ resource "aws_elastic_beanstalk_environment" "default" {
version_label = "${aws_elastic_beanstalk_application_version.default.name}"
solution_stack_name = "64bit Amazon Linux running Python"
}
`, randInt, randInt, randInt, randInt)
`, randInt, randInt, randInt)
}