Skip to content

Commit 6f6f3bb

Browse files
committed
PR updates
1 parent 20d9a42 commit 6f6f3bb

File tree

1 file changed

+2
-2
lines changed
  • src/pages/[platform]/build-a-backend/troubleshooting/circular-dependency

1 file changed

+2
-2
lines changed

src/pages/[platform]/build-a-backend/troubleshooting/circular-dependency/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When deploying a Amplify Gen 2 app, you may encounter the error message `The Clo
2929

3030
## Circular dependency error between nested stacks
3131

32-
If you see this error "The CloudFormation deployment failed due to circular dependency found between nested stacks [data1234ABCD, function6789XYZ]", it means that the nested stack for `data` and the nested stack for `function` have circular dependencies. E.g. if you are using the function as a query handler, but the function also needs access to the data (or `AppSync`) API, you might run into this issue. To resolve, assign this function to the `data` stack
32+
If you see this error "The CloudFormation deployment failed due to circular dependency found between nested stacks [data1234ABCD, function6789XYZ]", it means that the nested stack for `data` and the nested stack for `function` have circular dependencies. E.g. if you are using the `function` as a query handler, but the `function` also needs access to the data (or `AppSync`) API, you might run into this issue. To resolve, group this `function` with other resources in the `data` stack
3333

3434
```ts title="function.ts"
3535
export const queryFunction = defineFunction({
@@ -39,7 +39,7 @@ export const queryFunction = defineFunction({
3939
});
4040
```
4141

42-
Similarly, if you are using your function as an auth trigger, you can assign your function to the auth stack to break the circular dependency.
42+
Similarly, if you are using your `function` as an auth trigger, you can group your `function` with other resources in the `auth` stack to break the circular dependency.
4343

4444
```ts title="function.ts"
4545
export const preSignUpTrigger = defineFunction({

0 commit comments

Comments
 (0)