diff --git a/builtin/providers/aws/resource_aws_iam_role_test.go b/builtin/providers/aws/resource_aws_iam_role_test.go index 5d5c02925..22ffa8ec3 100644 --- a/builtin/providers/aws/resource_aws_iam_role_test.go +++ b/builtin/providers/aws/resource_aws_iam_role_test.go @@ -91,7 +91,7 @@ func TestAccAWSRole_badJSON(t *testing.T) { Steps: []resource.TestStep{ { Config: testAccAWSRoleConfig_badJson, - ExpectError: regexp.MustCompile(`"assume_role_policy" contains an invalid JSON:.*`), + ExpectError: regexp.MustCompile(`.*contains an invalid JSON:.*`), }, }, })