File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/pages/gen1/[platform]/build-a-backend/troubleshooting/apikey-not-found Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export function getStaticProps(context) {
29
29
If you're encountering an "API Key Not Found" issue in your Amplify project, follow the steps below to troubleshoot and resolve the problem:
30
30
31
31
## 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.
33
33
2 . Add the following line to the file:
34
34
35
35
``` ts title="parameters.json"
@@ -39,7 +39,7 @@ If you're encountering an "API Key Not Found" issue in your Amplify project, fol
39
39
40
40
## Step 2: Remove API Key from Lambda Function Attributes
41
41
42
- 1 . Open the ` backend/backend-config.json ` file.
42
+ 1 . Open the ` amplify/ backend/backend-config.json` file.
43
43
2 . Locate any JSON attribute arrays that include ` GraphQLAPIKeyOutput ` .
44
44
3 . Modify the arrays by removing the ` GraphQLAPIKeyOutput ` entry. For example:
45
45
* Change this:
@@ -74,7 +74,7 @@ If you're encountering an "API Key Not Found" issue in your Amplify project, fol
74
74
75
75
## Step 4: Restore the API Key
76
76
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` .
78
78
2 . Push the changes to restore the API key to the application:
79
79
80
80
``` sh
You can’t perform that action at this time.
0 commit comments