Skip to content

Commit 1e1edae

Browse files
authored
fixed styling
1 parent b2f0631 commit 1e1edae

File tree

1 file changed

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

1 file changed

+16
-9
lines changed

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

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ 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+
3233
1. Navigate to the `amplify/backend/api/<apiName>/parameters.json` file in your project.
3334
2. Add the following line to the file:
3435

3536
```tsx title="parameters.json"
37+
{
3638
"CreateAPIKey": 0
39+
}
3740
```
3841
Ensure that a comma is placed after the previous line if this is added at the end of the JSON object.
3942

@@ -45,20 +48,24 @@ If you're encountering an "API Key Not Found" issue in your Amplify project, fol
4548
* Change this:
4649

4750
```tsx title="backend-config.json"
48-
"attributes": [
49-
"GraphQLAPIIdOutput",
50-
"GraphQLAPIEndpointOutput",
51-
"GraphQLAPIKeyOutput"
52-
]
51+
{
52+
"attributes": [
53+
"GraphQLAPIIdOutput",
54+
"GraphQLAPIEndpointOutput",
55+
"GraphQLAPIKeyOutput"
56+
]
57+
}
5358
```
5459

5560
* To this:
5661

5762
```tsx title="backend-config.json"
58-
"attributes": [
59-
"GraphQLAPIIdOutput",
60-
"GraphQLAPIEndpointOutput"
61-
]
63+
{
64+
"attributes": [
65+
"GraphQLAPIIdOutput",
66+
"GraphQLAPIEndpointOutput"
67+
]
68+
}
6269
```
6370
Perform this change for each Lambda function that utilizes the API.
6471

0 commit comments

Comments
 (0)