Skip to content

Commit 884dfc9

Browse files
Update src/pages/[platform]/build-a-backend/troubleshooting/circular-dependency/index.mdx
Co-authored-by: josef <[email protected]>
1 parent 6f6f3bb commit 884dfc9

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

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

3232
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

34-
```ts title="function.ts"
34+
```ts title="amplify/functions/my-function/resource.ts"
3535
export const queryFunction = defineFunction({
3636
name: 'myFunction',
3737
entry: '../handler.ts',

0 commit comments

Comments
 (0)