provider/aws: Randomize key names in KMS alias test

This commit is contained in:
clint shryock 2016-05-17 10:40:42 -05:00
parent ef3de51199
commit 91a1097041
1 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import (
"testing"
"time"
"github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
@ -160,10 +161,10 @@ resource "aws_kms_key" "single" {
}
resource "aws_kms_alias" "one" {
name = "alias/tf-acc-key-alias-one"
name = "alias/tf-acc-key-alias-%s"
target_key_id = "${aws_kms_key.single.key_id}"
}
resource "aws_kms_alias" "two" {
name = "alias/tf-acc-key-alias-two"
name = "alias/tf-acc-key-alias-%s"
target_key_id = "${aws_kms_key.single.key_id}"
}`, kmsAliasTimestamp)
}`, kmsAliasTimestamp, acctest.RandString(5), acctest.RandString(5))