aws: Randomize IAM policy name in acc test

This commit is contained in:
Radek Simko 2017-04-04 11:07:55 +01:00
parent 35ceeb15f4
commit 2697532c8f
No known key found for this signature in database
GPG Key ID: 6823F3DCCE01BB19
1 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ resource "aws_iam_user" "user" {
name = "${format("paged-test-user-%d-%%d", count.index + 1)}"
}
resource "aws_iam_policy" "policy" {
name = "test-policy"
name = "tf-acc-test-policy-%d"
description = "A test policy"
policy = <<EOF
{
@ -331,5 +331,5 @@ resource "aws_iam_policy_attachment" "test-paginated-attach" {
name = "test-attachment"
users = ["${aws_iam_user.user.*.name}"]
policy_arn = "${aws_iam_policy.policy.arn}"
}`, rInt)
}`, rInt, rInt)
}