From e31cd65009eb678e186c8b618c94e32183d5424c Mon Sep 17 00:00:00 2001 From: Dirk Avery Date: Tue, 20 Oct 2020 13:47:00 -0400 Subject: [PATCH] tests/provider: Fix hardcoded ARN (Transfer User) --- aws/resource_aws_transfer_user_test.go | 69 ++++++++++++-------------- 1 file changed, 33 insertions(+), 36 deletions(-) diff --git a/aws/resource_aws_transfer_user_test.go b/aws/resource_aws_transfer_user_test.go index 22bee8358b2..afe9a1a122f 100644 --- a/aws/resource_aws_transfer_user_test.go +++ b/aws/resource_aws_transfer_user_test.go @@ -276,13 +276,14 @@ resource "aws_transfer_server" "foo" { NAME = "tf-acc-test-transfer-server" } } + +data "aws_partition" "current" {} ` func testAccAWSTransferUserConfig_basic(rName string) string { - return testAccAWSTransferUserConfig_base + fmt.Sprintf(` - + return composeConfig(testAccAWSTransferUserConfig_base, fmt.Sprintf(` resource "aws_iam_role" "foo" { - name = "tf-test-transfer-user-iam-role-%s" + name = "tf-test-transfer-user-iam-role-%[1]s" assume_role_policy = <