From 59117c2b5100441337dd619f5f38f9c86914dfd0 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Sat, 23 Oct 2021 07:50:49 -0700 Subject: [PATCH] fix: broken docs link in error message (#8436) --- .../src/pre-push-cfn-processor/cfn-pre-processor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-provider-awscloudformation/src/pre-push-cfn-processor/cfn-pre-processor.ts b/packages/amplify-provider-awscloudformation/src/pre-push-cfn-processor/cfn-pre-processor.ts index 85c9290a317..e76ea2e3e10 100644 --- a/packages/amplify-provider-awscloudformation/src/pre-push-cfn-processor/cfn-pre-processor.ts +++ b/packages/amplify-provider-awscloudformation/src/pre-push-cfn-processor/cfn-pre-processor.ts @@ -134,7 +134,7 @@ async function validateCustomPolicies(data: CustomIAMPolicies, categoryName: str if (!validatePolicy(data)) { let errorMessage = `Invalid custom IAM policies in the ${resourceName} ${categoryName}.\n Edit /amplify/backend/function/${resourceName}/custom-policies.json to fix - Learn more about custom IAM policies for ${categoryName}: https://docs.amplify.aws/function/custom-policies\n`; + Learn more about custom IAM policies for ${categoryName}: https://docs.amplify.aws/cli/function/#access-existing-aws-resource-from-lambda-function\n`; validatePolicy.errors.forEach(error => (errorMessage += `${error.message}\n`)); throw new CustomPoliciesFormatError(errorMessage); }