Skip to content

Commit 8c4aedb

Browse files
authored
updated file path
1 parent c54b7cf commit 8c4aedb

File tree

1 file changed

+3
-3
lines changed
  • src/pages/gen1/[platform]/build-a-backend/troubleshooting/apikey-not-found

1 file changed

+3
-3
lines changed

src/pages/gen1/[platform]/build-a-backend/troubleshooting/apikey-not-found/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function getStaticProps(context) {
2929
If you're encountering an "API Key Not Found" issue in your Amplify project, follow the steps below to troubleshoot and resolve the problem:
3030

3131
## Step 1: Modify `parameters.json` to Remove API Key
32-
1. Navigate to the `api/[name]/parameters.json` file in your project.
32+
1. Navigate to the `amplify/backend/api/<apiName>/parameters.json` file in your project.
3333
2. Add the following line to the file:
3434

3535
```ts title="parameters.json"
@@ -39,7 +39,7 @@ If you're encountering an "API Key Not Found" issue in your Amplify project, fol
3939

4040
## Step 2: Remove API Key from Lambda Function Attributes
4141

42-
1. Open the `backend/backend-config.json` file.
42+
1. Open the `amplify/backend/backend-config.json` file.
4343
2. Locate any JSON attribute arrays that include `GraphQLAPIKeyOutput`.
4444
3. Modify the arrays by removing the `GraphQLAPIKeyOutput` entry. For example:
4545
* Change this:
@@ -74,7 +74,7 @@ If you're encountering an "API Key Not Found" issue in your Amplify project, fol
7474

7575
## Step 4: Restore the API Key
7676

77-
1. Remove the `CreateAPIKey: 0` entry from `api/[name]/parameters.json`.
77+
1. Remove the `CreateAPIKey: 0` entry from `amplify/backend/api/<apiName>/parameters.json`.
7878
2. Push the changes to restore the API key to the application:
7979

8080
```sh

0 commit comments

Comments
 (0)