Skip to content

Commit

Permalink
Update src/pages/[platform]/build-a-backend/troubleshooting/circular-…
Browse files Browse the repository at this point in the history
…dependency/index.mdx

Co-authored-by: josef <[email protected]>
  • Loading branch information
Amplifiyer and josefaidt authored Dec 23, 2024
1 parent 6f6f3bb commit 884dfc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ When deploying a Amplify Gen 2 app, you may encounter the error message `The Clo

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

```ts title="function.ts"
```ts title="amplify/functions/my-function/resource.ts"
export const queryFunction = defineFunction({
name: 'myFunction',
entry: '../handler.ts',
Expand Down

0 comments on commit 884dfc9

Please sign in to comment.