diff --git a/internal/service/iam/role_policy_attachments_exclusive_test.go b/internal/service/iam/role_policy_attachments_exclusive_test.go index a4e2b67b223..f7da99bc391 100644 --- a/internal/service/iam/role_policy_attachments_exclusive_test.go +++ b/internal/service/iam/role_policy_attachments_exclusive_test.go @@ -273,7 +273,7 @@ func TestAccIAMRolePolicyAttachmentsExclusive_outOfBandAddition(t *testing.T) { ExpectNonEmptyPlan: true, }, { - Config: testAccRolePolicyAttachmentsExclusiveConfig_basic(rName), + Config: testAccRolePolicyAttachmentsExclusiveConfig_outOfBandAddition(rName, oobPolicyName), Check: resource.ComposeTestCheckFunc( testAccCheckRoleExists(ctx, roleResourceName, &role), testAccCheckRolePolicyAttachmentsExclusiveExists(ctx, resourceName),